2.0 Login control with cursor focus on Username

Discussion in 'ASP .Net' started by David R., Jan 8, 2006.

  1. David R.

    David R. Guest

    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?
     
    David R., Jan 8, 2006
    #1
    1. Advertisements

  2. In your Page_Load method, use

    Login1.Focus()

    or

    SetFocus(Login1)

    --
    Christopher A. Reed
    "The oxen are slow, but the earth is patient."

    "David R." <> wrote in message
    news:...
    > 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?
    >
     
    Christopher Reed, Jan 8, 2006
    #2
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Renuka

    Cursor on the Username text box

    Renuka, Dec 18, 2003, in forum: ASP .Net
    Replies:
    6
    Views:
    2,945
    Renuka Srivastava
    Dec 19, 2003
  2. Keith Patrick
    Replies:
    1
    Views:
    2,242
    Keith Patrick
    Dec 2, 2005
  3. =?Utf-8?B?em5hcHBh?=

    edit/extend username in login control

    =?Utf-8?B?em5hcHBh?=, Jul 23, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    521
    =?Utf-8?B?em5hcHBh?=
    Jul 23, 2006
  4. JL
    Replies:
    0
    Views:
    510
  5. dmaziuk
    Replies:
    3
    Views:
    966
    Chris Gonnerman
    Jan 25, 2011
  6. kai
    Replies:
    2
    Views:
    418
  7. Shailesh Patel
    Replies:
    0
    Views:
    638
    Shailesh Patel
    Nov 8, 2006
  8. Roger
    Replies:
    3
    Views:
    610
Loading...