tabstop of a textbox

  • Thread starter Thread starter Nikhil Patel
  • Start date Start date
N

Nikhil Patel

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
 
Hi,
Set the TabIndex property of the TextBox server control to -1.

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
 

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

Back
Top