异常详细信息: System.Exception: 参数化查询 '(@ID nvarchar(4000))select count(1) from news where ID=@ID' 需要参数 '@ID',但未提供该参数。
源错误:
行 17:new SqlParameter("@ID", nid) 行 18:};行 19: bool urlink = BLLhelp.Exists("news", "ID=@ID", parameters10);行 20: if (urlink)行 21: { 源文件: e:\web\yinxianshanzhuang.songtc.cn\index\incx\newsshow.aspx.cs 行: 19堆栈跟踪:
[Exception: 参数化查询 '(@ID nvarchar(4000))select count(1) from news where ID=@ID' 需要参数 '@ID',但未提供该参数。]Maticsoft.DBUtility.DbHelperOleDb.GetSingle(String SQLString, SqlParameter[] cmdParms) in F:\E文件\佛山市德润佳贸易有限公司\CodematicDemo\CodematicDemo\DBUtility\DbHelperOleDb.cs:382Maticsoft.DBUtility.DbHelperOleDb.Exists(String strSql, SqlParameter[] cmdParms) in F:\E文件\佛山市德润佳贸易有限公司\CodematicDemo\CodematicDemo\DBUtility\DbHelperOleDb.cs:62Maticsoft.DAL.publicHelp.Exists(String table, String conditionalStatement, SqlParameter[] parameters) in F:\E文件\佛山市德润佳贸易有限公司\CodematicDemo\CodematicDemo\DAL\publicHelp.cs:494Maticsoft.BLL.publicHelp.Exists(String table, String conditionalStatement, SqlParameter[] parameters) in F:\E文件\佛山市德润佳贸易有限公司\CodematicDemo\CodematicDemo\BLL\publicHelp.cs:143index_incx_newsshow.Page_Load(Object sender, EventArgs e) in e:\web\yinxianshanzhuang.songtc.cn\index\incx\newsshow.aspx.cs:19System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52System.Web.UI.Control.OnLoad(EventArgs e) +97System.Web.UI.Control.LoadRecursive() +61System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693 版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.8.4676.0