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. Advertising

  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. Advertising

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,761
    Renuka Srivastava
    Dec 19, 2003
  2. =?Utf-8?B?VG9tYXMgS2VwaWM=?=

    Changing DEFAULT cursor to WAIT cursor in ASP

    =?Utf-8?B?VG9tYXMgS2VwaWM=?=, Apr 5, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    2,338
    Bruce Barker
    Apr 5, 2005
  3. dmaziuk
    Replies:
    3
    Views:
    593
    Chris Gonnerman
    Jan 25, 2011
  4. Shailesh Patel
    Replies:
    0
    Views:
    477
    Shailesh Patel
    Nov 8, 2006
  5. Roger
    Replies:
    3
    Views:
    345
Loading...

Share This Page