Hi,
I have been working for a couple days trying to figure out how to do this. Working in C# I have a List of data being pulled from various database tables. I want to create different DropDownLists from this data that will persist across PostBacks. One way I was able to tinker through this was to parse the data into List> and nest two repeaters inside each other.
<asp:Repeater ID="rpt3" runat="server">
<ItemTemplate>
<select>
<asp:Repeater DataSource="<%#Container.DataItem%>" runat="server">
<ItemTemplate>
<option><%#Container.DataItem%></option>
</ItemTemplate>
</asp:Repeater>
</select>
</ItemTemplate>
</asp:Repeater>
The problem with this is that the SelectedValues do not save in the ViewState.
Is there some easy way to do this I am missing?
Thanks a lot