I have zero experience with LINQ but had occasion to use it today. I implemented a working solution but do have a question.
First, let me provide the background:
I have 20 large web pages that altogether have several hundred data input controls on them. There are strong similarities between how each type of control is handled. Rather than wire up each control individually (ie. hard code it in the layout page), I thought it would be a lot easier to just do so dynamically through a common method. On each of these web pages there's a MultiView control, inside of which are 2+ View controls. The guts of my original version of the common method looked like this:
foreach (View view in multiView.Controls)
foreach (Control ctrl in view.Controls)
DropDownList ddList = (DropDownList)ctrl;
View Complete Post