Results 1 to 3 of 3

Thread: Set Focus

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Posts
    1,374

    Set Focus

    How do you set the focus to a text box in ASP .NET? ASP Text boxes don't have a focus or setfocus method.

  2. #2
    Frenzied Member TomGibbons's Avatar
    Join Date
    Feb 2002
    Location
    San Diego, CA Previous Location: UK
    Posts
    1,345

    Re: Set Focus

    Javascript has a "focus" function call

    Something like
    Code:
    document.getElementById('txtUsername').focus();

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Posts
    1,374

    Re: Set Focus

    Spot on.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width