Set Focus to a TextBox

  • Thread starter Thread starter Steve Murphy
  • Start date Start date
S

Steve Murphy

How do you set focus to a particular TextBox in ASP.NET?

Thank you in advance.
 
In 2.0 this is built in via the SetFocus() API. In 1.1 you'll have to build
your own client javascript that does this. It's fairly easy with Page.RegisterStartupScript().

-Brock
DevelopMentor
http://staff.develop.com/ballen
 
Brock Allen said:
In 2.0 this is built in via the SetFocus() API. In 1.1 you'll have to
build your own client javascript that does this. It's fairly easy with
Page.RegisterStartupScript().

Thanks, that works.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top