Hi, one easy way to achive this is to use a base class for all your forms.
You can then use somthing like this to disable any type of control you want in your base class Page_Load event.
protected void Page_Load(object sender, EventArgs e)
{
DisableChilds(this.Page);
}
private void DisableChilds(Control ctrl)
{
foreach (Control c in ctrl.Controls)
{
DisableChilds(c);
if (c is Button)
{
((Button)(c)).Enabled = false;
}
}
}
You can replace the Button control with any other control.
I dont have any idea about performance, but it is probably heavy since its recursive!
I think there is another method that allows you to get all controls in a page, i cant remember it ...