How can I enable a text box on clicking a button?
firstly I insert the property readonly="true" to the textbox.
what code should i use to set the property readonly=false for the textbox when i click the button
1 Replies - 508 Views - Last Post: 14 November 2012 - 04:54 AM
#1
How to enable/disable a text box on clicking a button
Posted 14 November 2012 - 04:45 AM
Replies To: How to enable/disable a text box on clicking a button
#2
Re: How to enable/disable a text box on clicking a button
Posted 14 November 2012 - 04:54 AM
use the on_click method of the button to set it.
regards,
Raghav
protected void Buttonsubmit_Click(object sender, EventArgs e)
{
TextBox1.ReadOnly = false;
}
regards,
Raghav
This post has been edited by raghav.naganathan: 14 November 2012 - 05:13 AM
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote



|