setfocus and select text in a textbox

G

Guest

hi all,

I have a webform that I would like do add some features.
How do I :
1) setfocus in a textbox when the page first loads up; and also dynamically
when I want to focus on it.
2) highlight the text in a textbox.

TIA.
regards,
andrew
 
G

Guest

I don't know how to highlight the text in a text box but to set the focus on
it you just call the focus method. e.g. MyTextBox.Focus();
 
G

Guest

i am refering to a webform on asp.net 1.1. I don't think there is a focus()
for a textbox server control.
 

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,995
Messages
2,570,228
Members
46,817
Latest member
AdalbertoT

Latest Threads

Top