I am currently looping through all the controls on my page and setting certain types (TextBox, CheckBox, DropDownList, etc.) to Enabled=False under certain conditions.
However I notice an obvious page load increase looping like this. Is it possible to only get certain types of controls from the Page.Controls object rather than Loop through them all? Possibly with something like LINQ?
I am currently looping through all the controls on my page and setting certain
Share
This cannot be done entirely using LINQ but you could have an extension defined like this
and call