Server Error in '/' Application.

Cannot find table 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: Cannot find table 0.

Source Error:


Line 118:        ds = obj.ddlDataProc("sp_tbl_Product", ParamList);
Line 119:
Line 120:        if (ds.Tables[0].Rows.Count > 0)
Line 121:        {
Line 122:            BindDetail1(Convert.ToInt32(ds.Tables[0].Rows[0]["Category_Id"]));

Source File: g:\pleskvhosts\decorunlimited.in\Dynamic\homemanorusa.com\ProductDetails.aspx.cs    Line: 120

Stack Trace:


[IndexOutOfRangeException: Cannot find table 0.]
   System.Data.DataTableCollection.get_Item(Int32 index) +81
   ProductDetails.BindDetail(Int32 TempId) in g:\pleskvhosts\decorunlimited.in\Dynamic\homemanorusa.com\ProductDetails.aspx.cs:120
   ProductDetails.Page_Load(Object sender, EventArgs e) in g:\pleskvhosts\decorunlimited.in\Dynamic\homemanorusa.com\ProductDetails.aspx.cs:29
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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