I currently have a button called Edit and a text box call blah on a ajax updatepanel. is it possible to set the asp.net's textbox Readonly via trigger?
+1
A:
Yes it is possible.
Assuming the trigger is the edit button's onclick handler, put the code there...
Chris Lively
2008-12-10 21:27:37
a quick example or a tutorial link if you can.
Jack
2008-12-10 21:28:49
A:
Sorry, let me clerafiy. On the page load the textbox blah ReadOnly is set to false. I want to trigger the Edit button and set the textbox blah ReadOnly to true.
Jack
2008-12-10 21:28:09
A:
If you double click your edit button in the design window, it will create a method like this:
protected void btnEdit_Click(object sender, EventArgs e)
{
}
Just add some code like this:
txtbox.ReadOnly = true;
To make your textbox readonly.
GregD
2008-12-10 21:34:54