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

  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. 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. Jason
    Replies:
    4
    Views:
    1,681
    Jason
    May 7, 2007
  2. Replies:
    2
    Views:
    357
    Thomas 'PointedEars' Lahn
    Jun 6, 2005
  3. Roger
    Replies:
    3
    Views:
    379
  4. Jeff

    manual focus vs. focus()

    Jeff, May 20, 2007, in forum: Javascript
    Replies:
    4
    Views:
    196
  5. Spizzat2
    Replies:
    2
    Views:
    195
    Spizzat2
    Jan 9, 2008
Loading...

Share This Page