Author: bhatter | Posted on: 9/1/2008 3:33:02 AM | Views : 376

Hello all.
Here's my problem.
I'm creating a computer system configurator in C# 3.5. I'm using LINQ to DataSets and LINQ to SQL for populating run-time datatables from an SQL data source.
I then take the returned datasets, and dynamically create a table containing links and drop down lists. Everything works perfectly until I select a different option from one of the drop down lists.
I've tried adding a SelectedIndexChanged and TextChanged EventHandler during the Page's OnInit lifecycle. But when any of the drop down lists are changed causing an autopostback (which I want), I don't know how to get the value of the changed drop down list.
The page refreshes, causing the OnInit cycle to fire again, rebuilding the page. I've tried obtaining the value from ViewState, but the control is already built at that point, and is just refreshed from the ViewState without changing the contents of the Drop Down List.
The Code is liste ...

Go to the complete details ...