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

必须声明标量变量 "@nshow"。

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

异常详细信息: System.Data.SqlClient.SqlException: 必须声明标量变量 "@nshow"。

源错误:


行 31:                 new SqlParameter("@tshow",true)
行 32:                 };
行 33:         SqlDataReader odr = BLLhelp.GetListPage(table, AspNetPager1.PageSize, page, fields, strWherefield, strWhere, orderby, parameters);
行 34:         string href = "";
行 35:         while (odr.Read())

源文件: d:\c程序源文件\m模板调试\新后台_国内\JCUI\index\incx\taokelist.aspx.cs    行: 33

堆栈跟踪:


[SqlException (0x80131904): 必须声明标量变量 "@nshow"。]
   Maticsoft.DBUtility.DbHelperSQL.ExecuteReader(String SQLString, SqlParameter[] cmdParms) in E:\m模板备份\SQL静态\SQL底层\CodematicDemo\DBUtility\DbHelperSQL.cs:824
   Maticsoft.DAL.publicHelp.GetListPage(String table, Int32 Number, Int32 page, String fields, String strWherefield, String strWhere, String orderby, SqlParameter[] parameters) in E:\m模板备份\SQL静态\SQL底层\CodematicDemo\DAL\publicHelp.cs:649
   Maticsoft.BLL.publicHelp.GetListPage(String table, Int32 Number, Int32 page, String fields, String strWhereFatherfield, String strWhere, String orderby, SqlParameter[] parameters) in E:\m模板备份\SQL静态\SQL底层\CodematicDemo\BLL\publicHelp.cs:180
   index_incx_taokelist.BindTaokeList() in d:\c程序源文件\m模板调试\新后台_国内\JCUI\index\incx\taokelist.aspx.cs:33
   index_incx_taokelist.Page_Load(Object sender, EventArgs e) in d:\c程序源文件\m模板调试\新后台_国内\JCUI\index\incx\taokelist.aspx.cs:13
   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.1040