I have a repeater which has a dropdown list where the items are created dynamically at runtime using the OnItemDataBound event. When I wire this up in the repeated using the following:
<asp:Repeater ID="rptUnitExtras" runat="server" OnItemDataBound="rptUnitExtras_ItemDataBound">
I am now getting issues with the HttpSessionState I am using return ing null, i.e.
Throws an exception that _Session is a null value. If I take the OnItemDataBound="rptUnitExtras_ItemDataBound" out of the repeater the page loads okay but my dropdown lists don't get populated and the DataBind() method throws an exception as my selected value for the dropdown list does not exists in the list.
View Complete Post