I have multiple dropdownlist in a page and would like to disable all if user selects a checkbox which reads disable all. So far I have this code and it is not working. Any s
If you really want to disable all controls on a page, then the easiest way to do this is to set the form's Disabled property to true.
ASPX:
Code-behind:
protected void Page_Load(object sender, EventArgs e)
{
form1.Disabled = true;
}
But of course, this will also disable your checkbox, so you won't be able to click the checkbox to re-enable the controls.