Server Error in '/' Application.

Column 'product_name' does not belong to table .

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.ArgumentException: Column 'product_name' does not belong to table .

Source Error:


Line 74:         if (product.OperationStatus)
Line 75:         {
Line 76:             Pdt_name = product.product_name = product.ProductTable.Rows[0]["product_name"].ToString();
Line 77: 
Line 78:             Pdt_description = product.product_desc = product.ProductTable.Rows[0]["product_desc"].ToString();

Source File: c:\inetpub\vhosts\heinrichlimited.com\httpdocs\product_lisiting_category_description.aspx.cs    Line: 76

Stack Trace:


[ArgumentException: Column 'product_name' does not belong to table .]
   System.Data.DataRow.GetDataColumn(String columnName) +7107668
   System.Data.DataRow.get_Item(String columnName) +17
   product_lisiting_category_description.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\heinrichlimited.com\httpdocs\product_lisiting_category_description.aspx.cs:76
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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