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 47: 		Catch ex As Exception
Line 48: 		End Try
Line 49: 		_Row = getProductDT(_pID).Rows(0)
Line 50: 		If _Row("VatRate") = "0" Then
Line 51: 			litVatIncluded.Text = "ZERO VAT!"

Source File: C:\websites\eDecks\ProductV5.aspx.vb    Line: 49

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +125
   System.Data.DataRowCollection.get_Item(Int32 index) +19
   ProductV5.Page_Init(Object sender, EventArgs e) in C:\websites\eDecks\ProductV5.aspx.vb:49
   System.Web.UI.Control.OnInit(EventArgs e) +99
   System.Web.UI.Page.OnInit(EventArgs e) +16
   System.Web.UI.Control.InitRecursive(Control namingContainer) +454
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1719


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