Server Error in '/Webinar' Application.

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Source Error:


Line 99:             //TextBox2.Text = dt.Rows[0]["WebDesc"].ToString();
Line 100:
Line 101:            Panel DescPanel = (Panel)rptItems.Items[0].FindControl("DescPanel");
Line 102:
Line 103:            LiteralControl objPanelText = DescPanel.Controls[0] as LiteralControl;

Source File: d:\Websites\Qaielearning\Webinar\upcomingWebinarDetails.aspx.cs    Line: 101

Stack Trace:


[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
   System.Collections.ArrayList.get_Item(Int32 index) +7503976
   System.Web.UI.WebControls.RepeaterItemCollection.get_Item(Int32 index) +13
   Search.BindData(Object sender) in d:\Websites\Qaielearning\Webinar\upcomingWebinarDetails.aspx.cs:101
   Search.Page_Load(Object sender, EventArgs e) in d:\Websites\Qaielearning\Webinar\upcomingWebinarDetails.aspx.cs:63
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.8806; ASP.NET Version:2.0.50727.8762