Server Error in '/' Application.

There is no row at position 0.

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: There is no row at position 0.

Source Error:


Line 59:     else
Line 60:     { %>       
Line 61:             <a href='docs/<%=Convert.ToString(dsc.Tables[0].Rows[0]["DocumentImage"]) %>' class="jqzoom" rel='gal1'  title="glidershelmet" > <img src='docs/<%=Convert.ToString(dsc.Tables[0].Rows[0]["DocumentImage"]) %>' class="bigimg"  title="glidershelmet"  style="border: 4px solid #666; "> </a> 
Line 62:     <% } %>
Line 63: 

Source File: c:\domains\glidershelmet.com\httpdocs\ProductDetail.aspx    Line: 61

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +2567213
   System.Data.RBTree`1.get_Item(Int32 index) +16
   System.Data.DataRowCollection.get_Item(Int32 index) +16
   ASP.productdetail_aspx.__RenderContent2(HtmlTextWriter __w, Control parameterContainer) in c:\domains\glidershelmet.com\httpdocs\ProductDetail.aspx:61
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +115
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +253
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +87
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +53
   ASP.masterpage_master.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\domains\glidershelmet.com\httpdocs\MasterPage.master:341
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +115
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
   System.Web.UI.Page.Render(HtmlTextWriter writer) +38
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4240


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