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 7:      Dim inDriver As Integer
Line 8:      Protected Sub Page_load(ByVal sender As Object, ByVal E As EventArgs)
Line 9:          Master.Page.Title = "Nascarracingpool :: Details on " & GridView3.Rows(0).Cells(9).Text
Line 10:         inDriver = Request.QueryString("Driver")
Line 11:         inYear = Request.QueryString("Year")

Source File: D:\inetpub\nascarracingpool\Drivers\DriverDetail.aspx    Line: 9

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) +7492888
   System.Web.UI.WebControls.GridViewRowCollection.get_Item(Int32 index) +13
   ASP.drivers_driverdetail_aspx.Page_load(Object sender, EventArgs E) in D:\inetpub\nascarracingpool\Drivers\DriverDetail.aspx:9
   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.3662; ASP.NET Version:2.0.50727.3668