I have a page aspx
where I have more than 200 TextBox
, it's like a Form, then you have two options when you enter the page one of only "Show" and the other is "Edit", the options are enabled with two CheckBox
:
protected void Page_Load(object sender, EventArgs e) {
if ((CheckBoxMostrar.Checked == true))
{
CheckFalse();
}
}
Event of CheckFalse()
:
protected void Page_Load(object sender, EventArgs e) {
public void CheckFalse () {
//No es broma son como 200,sólo pongo 6
Textbox1.Text= false;Textbox2.Text= false;Textbox3.Text= false;
Textbox4.Text= false;Textbox5.Text= false; Textbox6.Text= false;
}
}
The question is: How to enable and disable all of a single shot? No need to put everything.