“/”应用程序中的服务器错误。

'=' 附近有语法错误。

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.Exception: '=' 附近有语法错误。

源错误:


行 30:             "IsPass=1 and ID not in (select ProID FROM TB_TypeAndProduct where TypeID in (select ID FROM TB_ProductType where ParentID=113 or ParentID in (select ID FROM TB_ProductType where ParentID=113))) and ID="
行 31:             + (string.IsNullOrWhiteSpace(ProductDetailModel.ProID) ? "0" : ProductDetailModel.ProID.Split(',')[0])) ?? new Model.Product();
行 32:         TypeAndProductlist = new BLL.TypeAndProduct().GetList("ProID=" + ProductModel.ID);
行 33:     }
行 34: 

源文件: c:\web\Web_New\Web\product\details.aspx.cs    行: 32

堆栈跟踪:


[Exception: '=' 附近有语法错误。]
   Maticsoft.DBUtility.DbHelperSQL.Query(String SQLString) in D:\项目\20161102\DBUtility\DbHelperSQL.cs:517
   Maticsoft.DBUtility.DALHandlerBase`1.GetList(Int32 Top, String column, String strWhere, String filedOrder) in D:\项目\20161102\DBUtility\DALHandlerBase.cs:297
   Maticsoft.DBUtility.DALHandlerBase`1.GetList(Int32 Top, String strWhere, String filedOrder) in D:\项目\20161102\DBUtility\DALHandlerBase.cs:258
   BLL.TypeAndProduct.GetList(Int32 Top, String strWhere, String filedOrder) in C:\Users\Administrator\Desktop\20161102\BLL\TypeAndProduct.cs:146
   BLL.TypeAndProduct.GetList(String strWhere) in C:\Users\Administrator\Desktop\20161102\BLL\TypeAndProduct.cs:134
   product_details.Page_Load(Object sender, EventArgs e) in c:\web\Web_New\Web\product\details.aspx.cs:32
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.6.1590.0