I need to allow users to copy the value of a TextBox but I don't want to
allow them to edit the value. I am able to achieve this by setting the
ReadOnly property to true. But now when the user clicks tabs to navigate
through the controls on the form, I don't want the readonly textbox to get
the focus. In VB6, I used to set the TabStop property to false. How can I
achieve this in ASP.Net?
Thanks.
-NikhilHi,
Set the TabIndex property of the TextBox server control to -1.
"Nikhil Patel" <npatel_wsystems@.hotmail.com> wrote in message
news:#rzFzufiEHA.1652@.TK2MSFTNGP09.phx.gbl...
Hi all,
I need to allow users to copy the value of a TextBox but I don't want to
allow them to edit the value. I am able to achieve this by setting the
ReadOnly property to true. But now when the user clicks tabs to navigate
through the controls on the form, I don't want the readonly textbox to get
the focus. In VB6, I used to set the TabStop property to false. How can I
achieve this in ASP.Net?
Thanks.
-Nikhil
0 comments:
Post a Comment