Setting focus

Discussion in 'ASP .Net Web Controls' started by Greg Smith, Nov 21, 2003.

  1. Greg Smith

    Greg Smith Guest

    Is there a way to set the focus to a control as you do with the .Focus on
    the Win side?

    Any help is greatly appreciated.
     
    Greg Smith, Nov 21, 2003
    #1
    1. Advertisements

  2. Greg Smith

    Rasto Guest

    U must on Client side with JavaScript:
    document.getElementById("myControlId").focus();

    "Greg Smith" <> wrote in message
    news:...
    > Is there a way to set the focus to a control as you do with the .Focus on
    > the Win side?
    >
    > Any help is greatly appreciated.
    >
    >
     
    Rasto, Nov 21, 2003
    #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. dmedina
    Replies:
    0
    Views:
    1,023
    dmedina
    Jun 25, 2003
  2. Steve Yerkes
    Replies:
    3
    Views:
    1,044
    Yan-Hong Huang[MSFT]
    Aug 1, 2003
  3. Blake Versiga

    Setting Initial Focus on a Text Box

    Blake Versiga, Jul 3, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    474
    David Waz...
    Jul 3, 2003
  4. Jason
    Replies:
    4
    Views:
    1,967
    Jason
    May 7, 2007
  5. Replies:
    2
    Views:
    535
    Thomas 'PointedEars' Lahn
    Jun 6, 2005
  6. Roger
    Replies:
    3
    Views:
    609
  7. Jeff

    manual focus vs. focus()

    Jeff, May 20, 2007, in forum: Javascript
    Replies:
    4
    Views:
    343
  8. Spizzat2
    Replies:
    2
    Views:
    383
    Spizzat2
    Jan 9, 2008
Loading...