Server Error in '/' Application.

Index 0 is either negative or above rows count.

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: Index 0 is either negative or above rows count.

Source Error:


Line 16:        BindVariables()
Line 17: 	   BindData()
Line 18: 	   CompanyName = ObjSuperSuppliers.GetSuperSupplierCompany(sid,countryid,CatID)
Line 19: 	   pTitle =  CompanyName & " Members"
Line 20: 	   ValKeyWords = CompanyName & " Members"

Source File: C:\Inetpub\vhosts\africa2trust.com\httpdocs\UserCtls\OurMembers.ascx    Line: 18

Stack Trace:


[IndexOutOfRangeException: Index 0 is either negative or above rows count.]
   System.Data.DataView.GetRow(Int32 index) +1902405
   System.Data.DataView.get_Item(Int32 recordIndex) +13
   SuppliersManager.MngSuperSuppliers.GetSuperSupplierCompany(Int64 SuperSupplierID, Int16 CountryID, Int32 SuperSupplierCategoryID) +393
   ASP.userctls_ourmembers_ascx.page_Load() in C:\Inetpub\vhosts\africa2trust.com\httpdocs\UserCtls\OurMembers.ascx:18
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +9874353
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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