Server Error in '/' Application.

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

Source Error:


Line 244:                    addToCartGA.Append("').val(),");
Line 245:                    addToCartGA.Append("'brand':'");
Line 246:                    string BrandName = rs["BrandName"] == DBNull.Value ? rs["ManuName"].ToString() : rs["BrandName"].ToString();
Line 247:                    BrandName = Regex.Replace(BrandName, @"[\r\n\x00\x1a\\'""]", @"\$0");
Line 248:                    addToCartGA.Append(BrandName);

Source File: c:\home\site\wwwroot\Modules\HawkSearchLink.ascx.cs    Line: 246

Stack Trace:


[ArgumentException: Column 'BrandName' does not belong to table .]
   System.Data.DataRow.GetDataColumn(String columnName) +6035112
   System.Data.DataRow.get_Item(String columnName) +14
   HawkSearchLink.Page_Load(Object sender, EventArgs e) in c:\home\site\wwwroot\Modules\HawkSearchLink.ascx.cs:246
   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.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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