How can I enable/disable an asp.net form/controls selectively or entirely from code-behind?
The following code is not working. Coz there is no Enabled property in this case.
public static void Disable(Page container)
{
for (int i = 0; i < container.Controls.Count; i++)
{
container.Form.Controls[i].Enabled = false;
}
}