Server Error in '/' Application.

item

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.IndexOutOfRangeException: item

Source Error:


Line 117:		dtr(0) = dr.Item("catID") 'hdnCat.Value
Line 118:		dtr(1) = dr.Item("id")
Line 119:		dtr(2) = dr.Item("item")
Line 120:		dtr(3) = "products/thumbs/" & dr.Item("image")
Line 121:		dt.Rows.Add(dtr)

Source File: C:\Inetpub\wwwroot\gunville\new_products.aspx    Line: 119

Stack Trace:


[IndexOutOfRangeException: item]
   System.Data.Common.FieldNameLookup.GetOrdinal(String fieldName) +55
   System.Data.SqlClient.SqlDataReader.GetOrdinal(String name) +70
   System.Data.SqlClient.SqlDataReader.get_Item(String name) +10
   ASP.new_products_aspx.CreateDataSource(String sqlItems) in C:\Inetpub\wwwroot\gunville\new_products.aspx:119
   ASP.new_products_aspx.getData() in C:\Inetpub\wwwroot\gunville\new_products.aspx:59
   ASP.new_products_aspx.Page_Load(Object sender, EventArgs e) in C:\Inetpub\wwwroot\gunville\new_products.aspx:21
   System.Web.UI.Control.OnLoad(EventArgs e) +67
   System.Web.UI.Control.LoadRecursive() +35
   System.Web.UI.Page.ProcessRequestMain() +750


Version Information: Microsoft .NET Framework Version:1.1.4322.2407; ASP.NET Version:1.1.4322.2407