2.0 Login control with cursor focus on Username

  • Thread starter Thread starter David R.
  • Start date Start date
D

David R.

Using <asp:Login ID="Login1" runat="server">

Is it possible to set the initial cursor focus on the Username text field
when the page initially loads?
 
In your Page_Load method, use

Login1.Focus()

or

SetFocus(Login1)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top