国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > .NET > 正文

ASP.NET錯誤信息:至少一個參數沒有被指定值

2024-07-10 13:06:27
字體:
來源:轉載
供稿:網友
,歡迎訪問網頁設計愛好者web開發。

“/website1”應用程序中的服務器錯誤。
--------------------------------------------------------------------------------

至少一個參數沒有被指定值。
說明: 執行當前 web 請求期間,出現未處理的異常。請檢查堆棧跟蹤信息,以了解有關該錯誤以及代碼中導致錯誤的出處的詳細信息。

異常詳細信息: system.data.oledb.oledbexception: 至少一個參數沒有被指定值。

源錯誤:


行 41:         sql_update = "update rizhi set rq='" & rq & "',je=" & je & ",[title]='" & title1 & "',content='" & content & "' where id=" & id
行 42:         mycommand = new oledbcommand(sql_update, conn)
行 43:         j = mycommand.executenonquery()
行 44:         mycommand.dispose()
行 45:         conn.close()
 

源文件: e:/asp.net/visual studio 2005/websites/website1/rizhi_edit.aspx    行: 43

堆棧跟蹤:


[oledbexception (0x80040e10): 至少一個參數沒有被指定值。]
   system.data.oledb.oledbcommand.executecommandtextforsingleresult(tagdbparams dbparams, object& executeresult) +177
   system.data.oledb.oledbcommand.executecommandtext(object& executeresult) +194
   system.data.oledb.oledbcommand.executecommand(commandbehavior behavior, object& executeresult) +56
   system.data.oledb.oledbcommand.executereaderinternal(commandbehavior behavior, string method) +105
   system.data.oledb.oledbcommand.executenonquery() +88
   asp.rizhi_edit_aspx.submit(object o, eventargs e) in e:/asp.net/visual studio 2005/websites/website1/rizhi_edit.aspx:43
   system.web.ui.webcontrols.button.onclick(eventargs e) +75
   system.web.ui.webcontrols.button.raisepostbackevent(string eventargument) +97
   system.web.ui.webcontrols.button.system.web.ui.ipostbackeventhandler.raisepostbackevent(string eventargument) +7
   system.web.ui.page.raisepostbackevent(ipostbackeventhandler sourcecontrol, string eventargument) +11
   system.web.ui.page.raisepostbackevent(namevaluecollection postdata) +33
   system.web.ui.page.processrequestmain(boolean includestagesbeforeasyncpoint, boolean includestagesafterasyncpoint) +4919

 


--------------------------------------------------------------------------------
版本信息: microsoft .net framework 版本:2.0.50727.42; asp.net 版本:2.0.50727.42

 

這種錯誤一般是由于sql語句引起的,例如上面的

 行 41:         sql_update = "update rizhi set rq='" & rq & "',je=" & je & ",[title]='" & title1 & "',content='" & content & "' where id=" & id

就是因為把字段n_je誤寫成je,而導致的錯誤。

 

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 禄劝| 镇平县| 安吉县| 清镇市| 黎城县| 南汇区| 靖边县| 馆陶县| 井陉县| 尉氏县| 徐水县| 阜新市| 长岛县| 平顶山市| 灵台县| 安阳县| 夹江县| 石阡县| 昌邑市| 浑源县| 兴文县| 通道| 贡嘎县| 丰顺县| 桦南县| 三穗县| 磐石市| 枣强县| 左权县| 五峰| 临邑县| 县级市| 方山县| 新民市| 博客| 黄石市| 康平县| 磐安县| 革吉县| 旬邑县| 西丰县|