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 45:                 Panel3.Visible = false;
Line 46:                 bind_image_datalist();
Line 47:                 Panel Panel4 = (Panel)Details_Repeater.Items[0].FindControl("Panel4");
Line 48:                 Panel4.Visible = false;
Line 49:             }

Source File: c:\inetpub\vhosts\rrtravelsandtickets.com\RRTRAVELSANDTOURS.IN\hotelbooking.aspx.cs    Line: 47

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) +7503912
   System.Web.UI.WebControls.RepeaterItemCollection.get_Item(Int32 index) +13
   hotelbooking.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\rrtravelsandtickets.com\RRTRAVELSANDTOURS.IN\hotelbooking.aspx.cs:47
   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.8813; ASP.NET Version:2.0.50727.8951