Click here to Skip to main content
12,552,693 members (55,082 online)
Click here to Skip to main content

Tagged as



How to enable/disable a text box on clicking a button

, 13 Nov 2012 CPOL
1) Add a click handler to your code behind and tie it to your Button control.2) In the click handler, write something like YourTextBox.readonly = false3) That's it.Cheers.Edit: After seeing your answer that this is a web app, See ryan's answer as the way to go.



Compare Revision Minor Date Status Editor
2 - publicly available No 13-Nov-12 0:24 Available fjdiewornncalwe
Updates in content. 72 changes had been made.
1 No 12-Nov-12 23:57 Available fjdiewornncalwe


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


About the Author

Software Developer (Senior)
Canada Canada
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.161021.1 | Last Updated 13 Nov 2012
Article Copyright 2012 by fjdiewornncalwe
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid