set default cursor position

Discussion in 'ASP .Net' started by Grey, Sep 22, 2004.

  1. Grey

    Grey Guest

    how to set the default cursor position to the one textbox in asp.net
    Grey, Sep 22, 2004
    #1
    1. Advertising

  2. Grey

    Shiva Guest

    Here is one way to do it (using body onLoad event):

    <body onLoad='<%= "window.document.forms[0]." + TextBoxID.ClientID +
    ".focus();" %>'>
    OR
    <body onLoad='window.document.forms[0].<%= TextBoxID.ClientID %>.focus();'>

    "Grey" <> wrote in message
    news:...
    how to set the default cursor position to the one textbox in asp.net
    Shiva, Sep 22, 2004
    #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. =?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,316
    Bruce Barker
    Apr 5, 2005
  2. Jean-Benoit MORLA
    Replies:
    1
    Views:
    3,777
    Michael Borgwardt
    May 24, 2004
  3. Peer W Hansen
    Replies:
    0
    Views:
    6,620
    Peer W Hansen
    May 16, 2004
  4. dmaziuk
    Replies:
    3
    Views:
    574
    Chris Gonnerman
    Jan 25, 2011
  5. SibAndela
    Replies:
    1
    Views:
    191
    Jeff Cochran
    Sep 26, 2004
Loading...

Share This Page