Server Error in '/' Application.

Syntax error in the expression.

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 in the expression.

Source Error:


Line 247:            String Search_Str = Request.QueryString["Search"];
Line 248:            where_clause += Search_Str;
Line 249:            view.RowFilter = where_clause;
Line 250:            Session["STK_DATA_VIEW"] = view;
Line 251:

Source File: d:\WebSites\Alibaba\WebSite\Stock_1.aspx.cs    Line: 249

Stack Trace:


[SyntaxErrorException: Syntax error in the expression.]
   System.Data.ExpressionParser.Parse() +6293511
   System.Data.DataExpression..ctor(DataTable table, String expression, Type type) +154
   System.Data.DataView.set_RowFilter(String value) +188
   Stock_1.BindGrid() in d:\WebSites\Alibaba\WebSite\Stock_1.aspx.cs:249
   Stock_1.Page_Load(Object sender, EventArgs e) in d:\WebSites\Alibaba\WebSite\Stock_1.aspx.cs:45
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.9061; ASP.NET Version:2.0.50727.9062