Setting focus on Specific TextBox on Page Load in Asp.Net

Leave a Comment

Setting the default focus for a page can be done using the defaultFocus attribute:
<form defaultFocus="TextBox1" runat="server" >

Programmatic support for validating groups:

  • Page.SetFocus(control)
  • Page.SetFocus("ClientID")
  • txtName.Focus()


0 comments:

Post a Comment