Server Error in '/' Application.

Syntax error: Missing operand after 'codename' operator.

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.Data.SyntaxErrorException: Syntax error: Missing operand after 'codename' operator.

Source Error:


Line 31:                 string v = dr[0].ToString();
Line 32:             }
Line 33:             DataRow[] row = dt.Select(" where codename =" + global);
Line 34:         }
Line 35:     }

Source File: c:\websites\BCP.cfcrapidcapture.com\Forms\Default2.aspx.cs    Line: 33

Stack Trace:


[SyntaxErrorException: Syntax error: Missing operand after 'codename' operator.]
   System.Data.ExpressionParser.Parse() +3042
   System.Data.DataExpression..ctor(DataTable table, String expression, Type type) +165
   System.Data.Select..ctor(DataTable table, String filterExpression, String sort, DataViewRowState recordStates) +116
   System.Data.DataTable.Select(String filterExpression) +87
   Forms_Default2.Page_Load(Object sender, EventArgs e) in c:\websites\BCP.cfcrapidcapture.com\Forms\Default2.aspx.cs:33
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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