Geeks With Blogs
AzamSharp Some day I will know everything. I hope that day never comes.

ASP.NET 2.0 introduces DefaultButton and DefaultFocus properties. You can use the form tag to define the properties DefaultButton and DefaultFocus. Here is a small example.


 <form id="form1" defaultbutton="ButtonID" defaultfocus="TextBox1" runat="server">

The input controls in ASP.NET also exposes the DefaultFocus properties. The last control that call the Focus() method will be focused.  

powered by IMHO 1.3

Posted on Tuesday, January 24, 2006 8:06 PM | Back to top

Comments on this post: DefaultButton and DefaultFocus in ASP.NET 2.0

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Mohammad Azam | Powered by: