Setting focus to TextBox

S

Simon Cheng

Hi,,

Is there a way to set focus to an System.Web.UI.WebControls.TextBox control
on a web form? The class doesn't seem to provide such facility? Basically I
want to set input cursor to a TextBox when the page is first loaded or after
the user submit invalid data.

Thanks,
- Simon
 
S

Simon Cheng

Thanks! ASP.NET 2.0's DefaultButton only supports (well) Button control. Is
there an equivalent for TextBox control?

-Simon
 

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

Members online

Forum statistics

Threads
473,994
Messages
2,570,222
Members
46,810
Latest member
Kassie0918

Latest Threads

Top