setfocus and select text in a textbox

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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();
 
i am refering to a webform on asp.net 1.1. I don't think there is a focus()
for a textbox server control.
 
Back
Top