Pages

Search Code Shode

Tuesday, August 23, 2011

Enable/Disable DropDownList through Checkbox using jQuery - ASP.NET


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#chkEnable").click(function () {
                if (this.checked)
                    $('#ddlList').attr('disabled', 'disabled');
                else
                    $('#ddlList').removeAttr('disabled');
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:CheckBox ID="chkEnable" runat="server" Text="Enable/Disable" /><br />
        <asp:DropDownList ID="ddlList" runat="server">
            <asp:ListItem Text="Select" Value="-1" />
            <asp:ListItem Text="Option1" Value="1" />
            <asp:ListItem Text="Option2" Value="2" />
            <asp:ListItem Text="Option3" Value="3" />
        </asp:DropDownList>
    </div>
    </form>
</body>
</html>

Friday, August 19, 2011

Dual OS Tablet : Windows and Android ViewPad 10Pro Tablet


Here finally is a tablet that can rid you of all the grouse that you may have had so far of tablet PCs running Window. That too without having to give up on Android. Welcome the new ViewPad 10Pro from ViewSonic that dual boots both Android and Windows. The 10 inch tablet with an Intel Atom Oak Trail processor was being showcased by ViewSonic since early this year and now it seems its finally ready to hit the streets.

One of the biggest pluses with the ViewPad 10Pro is its battery life that has gained a degree of respectability, which in turn can be attributed to the use of Intel Z670 Atom processor based on the Oak Trail platform with a clock speed of 1.5 GHz. Run-time is touted to be in the range of 8 hours on a single charge which is a couple of hours more than what Wintel tablets are generally known for.

Another big advantage of the ViewPad 10Pro is its ability to run both Android and Windows application.  Also, even though the tablet runs both the Windows and Android operating systems, yet the device is not a dual boot one in the truest sense since you won’t be required to reboot in order to switch between the two OSs. Instead, a tap on an icon is all that is needed to switch between the two. This since the base operating system is Windows with Android running over it as a virtualized layer over Windows. ViewSonic attributes this feature to the use of a software named BlueStacks.

As for its specs, the ViewPad 10Pro comes with a 1024 X 600 pixel 10.1 inch screen based on capacitive multitouch technology. The tablet includes a 2 GB RAM and can support up to 32 GB of max storage capacity. For output the tablet has HDMI out port and it can playback 1080p HD video. It also has support for 802.11b/g/n Wi-Fi and Bluetooth.

There are two version of the tablet — one which runs Windows 7 Home Premium and Android 2.3 and is priced at $599, while the other at $699 has a 32 GB SSD running Windows 7 Professional along with Android 2.3 Gingerbread.
However, the tablet still runs the risk of skitling out of public memory soon as the world has moved on since the tablet was first announced. Its Windows 8 that we are looking forward to and the new Windows version is making all the right noises so far. Android too has made steady progress so that its the tablet optimized Honeycomb version that is doing the rounds now and its Ice Cream Sandwich that is next in the pipeline. But who knows, the tablet might be upgradeable to both the new versions of Android and Windows.


Tuesday, August 16, 2011

Few Expectations from Windows 8



I hope Microsoft does more than give a pretty facelift to match its smartphone OS. Among the things that have unnecessarily bedeviled PC users since the days of '95 we may count:

- Plug & Play that doesn't. Few experiences are as frustrating as finding your new hardware isn't recognized properly by the system. If 8 can standardize minimum-spec code built in at the OS level to recognize the most commonly seen devices maybe we can finally kiss goodbye all those memories of unrecognized peripherals ruining your day.

- Thin is in. As slick as Win 7 is each new build brings with it unnecessary baggage. The inclusion of ancient bundled apps like Paint is, simply put, an embarrassment. In an age when a modern linux distro can fit on a modest USB Windows is straining to fit onto DVDs. Make the next OS boot up in ten seconds flat and load secondary system files later as needed.

- Easy networking and sharing. If I, a guy who's been in IT now for two decades, still get mortified when trying to interconnect computers how does that bode for grandma? Why is it that sharing my C drive is cloaked in umpteen security layers and then still cross-your-fingers and hope that it'll be useable on the other side?

- Why does Windows expect me to do things its way? Every time I want to download a file it insists, despite thousands of repeated redirections to my desktop, to stick it in some nested document folder I never use. Why is it that my desktop icons so often switch places for no good reason? A 21st OS should adapt from my patterns of usage.

- Stop being so greedy. Having a half dozen version of the same OS leads to confusion and ill-will. If you have to have multiple versions at all separate from consumer and server versions. That's it.

- Go cloud. The MS business model is too tied to physical media and pay-per-license. I ditched Outlook years ago for Gmail because there was no such thing as an online version of it. Google docs, free for all, is tempting me to ditch Office for the same reason. How about an online backup service built into the OS so I don't have to rely on a 3rd party? This is an essential mission of any OS.

- Innovation. I struggle to think of a single truly breakthrough Microsoft invention. Ok I take that back, let's give props for the Kinect. But in terms of OS for me to be wowed by Win 8 it has to have more substance than a gussied up GUI. I want to have a truly novel way of locating and organizing my files. I want to do what I want to do with speed and with the OS being invisible until I need it. I want more resiliency, not just stability, so that things don't stop working seemingly for the hell of it and, likewise, less dread thinking of what will go wrong when I plug in a new widget or install a new app. It'll be magic the day the whole thing just works without a too-long wait or too many nag screens or some other if and or but.

Remember MS, Windows is an OPERATING SYSTEM. It should perform three core functions: connect the machine with its various parts and peripherals, provide a platform for software and file management. The company should concentrate on optimizing that core experience and recognize that the bundled apps are at best gravy and at worst bloatware that gets in the way.


اشتہارات