.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Post New Web Links

OnItemDataBound isseu

Posted By:      Posted Date: September 23, 2010    Points: 0   Category :ASP.Net

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.

Any suggestions.

Kind regards



View Complete Post

More Related Resource Links

Repeater OnItemDataBound does not fire when in MasterPage


I have a master page with a user control consisting of a repeater with a SiteMapDataSource. However when doing a post back on a page using the master page, the onitemdatabound event of the repeater in the user control does not fire. How come and how to solve?

<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="false"  />
<asp:Repeater ID="rptMenu" DataSourceID="SiteMapDataSource1" runat="server" OnItemDataBound="rptMenu_ItemDataBound">


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend