Click here to Skip to main content
13,145,603 members (36,732 online)
Click here to Skip to main content

Tagged as


Posted 13 Nov 2012

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

, 13 Nov 2012
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 4:24 Available fjdiewornncalwe
Updates in content. 72 changes had been made.
1 No 13-Nov-12 3: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...

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