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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top