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 70:  <%If Request.QueryString("Type") = 2 Then%>
Line 71:  <%Dim dt As DataTable = Show_SCR.View_Single_Article(Request.QueryString("ID"), 1)%>
Line 72:  <meta name="description" content="<%=dt.rows(0)("Field1") %>"/>
Line 73:  <%ElseIf Request.QueryString("Type") = 1 Then%>
Line 74:  <meta name="description" content="<%=Show_Category(Request.QueryString("ID"), 1).Rows(0)("Meta_Description_EN") %>"/>

Source File: C:\Inetpub\vhosts\albehar-engineering.com\httpdocs\User_Site_Home_MasterPage.master    Line: 72

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +2508478
   System.Data.DataRowCollection.get_Item(Int32 index) +20
   ASP.user_site_home_masterpage_master.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in C:\Inetpub\vhosts\albehar-engineering.com\httpdocs\User_Site_Home_MasterPage.master:72
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +276
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +169
   System.Web.UI.Page.Render(HtmlTextWriter writer) +40
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4239


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