Click here to Skip to main content
15,074,668 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i want to hide textboxes:
give authority to user to change only few textboxes not all, and rest textboxes will be locked .locked means user dnot have autority to update that textbox
For such purpose, disabled controls are used. What did you try so far?

1 solution

Wich textbox U don't want to update Do Enabled fals ;
txtAdd1.Enabled = false;

And u can hide also like
txtBox.Visible = false;

and u can also use it as a property in aspx file.
Sergey Alexandrovich Kryukov 13-Oct-13 20:33pm
Enabling has nothing to do with hiding. Very bad. You should not answer on topics you have no clue about.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900