网奇论坛

首页 » 网奇产品区 » 网奇Eshop商城购物系统 » 删分类后所出现的错误
dh667 - 2008-7-27 16:36:00
语法错误 (操作符丢失) 在查询表达式 'CategoryID IN ()' 中。 说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.Data.OleDb.OleDbException: 语法错误 (操作符丢失) 在查询表达式 'CategoryID IN ()' 中。

源错误:

行 1:  <%@ Control Language="c#" AutoEventWireup="false" Codebehind="CustomProducts.ascx.cs" Inherits="wqshop.Modules.CustomProducts" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>行 2:  <%BindCustomProductList(4,6,"dlCustomProductts","New");%>行 3:  <asp:DataList ID="dlCustomProductts"行 4:  CellPadding="4"

源文件: d:\www\dyttz\wwwroot\Template\freemodelv22\Modules\CustomProducts1.ascx    行: 2

堆栈跟踪:

[OleDbException (0x80040e14): 语法错误 (操作符丢失) 在查询表达式 'CategoryID IN ()' 中。]  System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(Int32 hr) +41  System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) +174  System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +92  System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +65  System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +112  System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) +69  XpShop.Utility.ProductDB.GetTopList(Int32 catID, String type, Int32 topNum)  wqshop.Modules.CustomProducts.BindCustomProductList(Int32 catID, Int32 topNum, String controlName, String sort)  ASP.CustomProducts1_ascx.__Render__control1(HtmlTextWriter __output, Control parameterContainer) in d:\www\dyttz\wwwroot\Template\freemodelv22\Modules\CustomProducts1.ascx:2  System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +27  System.Web.UI.Control.Render(HtmlTextWriter writer) +7  System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243  ASP.Default_aspx.__Render__control1(HtmlTextWriter __output, Control parameterContainer) in d:\www\dyttz\wwwroot\Template\freemodelv22\Default.aspx:259  System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +27  System.Web.UI.Control.Render(HtmlTextWriter writer) +7  System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243  System.Web.UI.Page.ProcessRequestMain() +1926

零距离 - 2008-7-28 8:53:00
不能删,可以修改
女De程序 - 2008-7-28 11:34:00
修改下: 

引用:

Template\XXXX\Modules\CommendProduct1.ascx    CommendProduct2.ascx
  CommendProduct3.ascx    CommendProduct4.ascx

文件,参考代码:

<%BindCustomProductList(4,6,"dlCustomProductts","New");%>


其中,4 是分类ID,登陆后台后,把你删除的分类ID改成其它已存在的分类ID.

分类ID从后台管理中的分类里获取.
1
查看完整版本: 删分类后所出现的错误