In asp.net 2.0 you can now set the focus of a control using its Focus() method. The Focus() method works on the server side, therefore be careful as postbacks will occur!
----txtAge.Focus()
If you want client side focusing then the following link will help you out!
Setting the default button and default focus on a Web Form is also simple now
----<form id="form1" runat="server" defaultbutton="btnSubmit" defaultfocus="txtAge">
Sunday, October 22, 2006
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment