Server Error in '/' Application.

語法錯誤 (操作符丟失) 在查詢表達式 'CategoryId= and Isshow=true' 中。

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.Exception: 語法錯誤 (操作符丟失) 在查詢表達式 'CategoryId= and Isshow=true' 中。

Source Error:


Line 313:                catch (System.Data.OleDb.OleDbException ex)
Line 314:                {
Line 315:                    throw new Exception(ex.Message);
Line 316:                }
Line 317:                return ds;

Source File: d:\vhostroot\localuser\nanpainew\www\App_Code\DbHelperOleDb.cs    Line: 315

Stack Trace:


[Exception: 語法錯誤 (操作符丟失) 在查詢表達式 'CategoryId= and Isshow=true' 中。]
   DBUtility.DbHelperOleDb.Query(String SQLString) in d:\vhostroot\localuser\nanpainew\www\App_Code\DbHelperOleDb.cs:315
   cn_controls_productshow.init(String ProductId, Int32 curpage) in d:\vhostroot\localuser\nanpainew\www\controls\productshow.ascx.cs:126
   cn_controls_productshow.Page_Load(Object sender, EventArgs e) in d:\vhostroot\localuser\nanpainew\www\controls\productshow.ascx.cs:25
   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.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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