Server Error in '/' 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 25:     void Repeater3_PreRender(object sender, EventArgs e)
Line 26:     {
Line 27:         HiddenField hidTitle = (HiddenField)Repeater3.Items[0].FindControl("hidTitle");
Line 28:         if (hidTitle != null)
Line 29:         {

Source File: c:\inetpub\LocalUser\ftp.rainbow-spirit\category_new.aspx.cs    Line: 27

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) +14814396
   System.Web.UI.WebControls.RepeaterItemCollection.get_Item(Int32 index) +19
   Category_new.Repeater3_PreRender(Object sender, EventArgs e) in c:\inetpub\LocalUser\ftp.rainbow-spirit\category_new.aspx.cs:27
   System.Web.UI.Control.OnPreRender(EventArgs e) +11905684
   System.Web.UI.Control.PreRenderRecursiveInternal() +162
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6875


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4076.0