View Complete Post
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) { switch (ctrl.GetType().Name) { case "DropDownList": DropDownList ddList = (DropDownList)ctrl; &nbs
Hall of Fame Twitter Terms of Service Privacy Policy Contact Us Archives Tell A Friend