ok, you can take this way. Just try
myTextBox.Attributes["onfocus"] = "this.select();";
Eliyahu
"ad" <fl****@wfes.tcc.edu.tw> wrote in message
news:eh**************@TK2MSFTNGP15.phx.gbl...
I use:
myTextBox.Attributes["onfocus"] = myTextBox.ClientID +
".sclect();";
But it can't work.
"ad" <fl****@wfes.tcc.edu.tw>
¼¶¼g©ó¶l¥ó·s»D:eb**************@TK2MSFTNGP09.phx.g bl... Thanks,
But I can't do.
Please give me some code.
"Eliyahu Goldin" <re*************@monarchmed.com>
¼¶¼g©ó¶l¥ó·s»D:Od*************@TK2MSFTNGP15.phx.gb l... You can do it on client side with a javascript call myTextBox.select();
Eliyahu
"ad" <fl****@wfes.tcc.edu.tw> wrote in message
news:eb*************@tk2msftngp13.phx.gbl...
I have a Textbox (Text) in a web form.
I use
this.SetFocus(Text1);
to set the focus on Text1.
How can I let the text in Text1 selected when the Text1 get focus?