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

'=' 附近有语法错误。

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

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

源错误:


行 72:             CatID = db.GetOne("select p_id from " + Config.Table("category") + " where cat_code='" + Request["cat_code"] + "'");
行 73:             //CatID = "118";
行 74:             catInfo = GetCatInfo(CatID);
行 75:             parentCatInfo = GetParentCat(CatID);
行 76:             prevCatInfo = GetPrevCat(CatID);

源文件: f:\usr\localuser\qyw13361\cn\index.aspx.cs    行: 74

堆栈跟踪:


[Exception: '=' 附近有语法错误。]
   DbSql.Query(String sql) +168
   Db.GetAll(String sql) +13
   Db.GetRow(String sql) +11
   HomePageBase.GetCatInfo(String cat_id) +63
   Index.Page_Load(Object sender, EventArgs e) in f:\usr\localuser\qyw13361\cn\index.aspx.cs:74
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207


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