Sunday, February 4, 2007

Set Focus

In ASP.net there are 2 ways to set focus to a textbox. One uses the defaultfocus property of the form tag and the other uses the SetFocus method in the code behind.

1. defaultfocus (web form)

<form id="frmFocus" runat="server" defaultfocus="txtSecond">

2. SetFocus (code behind)

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
   Me.SetFocus("textbox")
End Sub

Labels:

Saturday, February 3, 2007

Windows Vista - Try before you buy

Just like you would take a car for a test drive, you can now take Windows Vista for a spin by going to windowsvistatestdrive.com. All you have to do is enter your email address then select any of the 4 options (Safe, Efficient, Connected, Collaborative) and click test drive and you are logged into a virtual desktop running Vista. You can browse, open various programs or view various instructional videos.

In my first attempt, I was asked to download the latest video driver from Microsoft and it took a few minutes for me to log in. Subsequent tries, took much less time and I was using the Vista desktop in no time. You can also try out the new Microsoft Office 2007 while you are on the Vista desktop.

If you are thinking about upgrading to Microsoft Windows Vista, it will be worth your time to take it for a spin first.

Labels:

AMD vs. Intel

I am in the market for a new PC. The difficult decision is whether to pick a PC with an Intel or AMD chipset. The AnandTech website gives a great breakdown on performance comparing the various chips that Intel and AMD offer. Take a look if you need help making a decision.

Labels: