国产探花免费观看_亚洲丰满少妇自慰呻吟_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,而導致的錯誤。

 

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 彭州市| 长汀县| 大田县| 岑巩县| 揭西县| 新建县| 五常市| 韶关市| 祥云县| 育儿| 阳新县| 通海县| 辉南县| 鄂托克旗| 云南省| 竹溪县| 乐亭县| 乌兰浩特市| 东乌珠穆沁旗| 徐州市| 台中市| 钟山县| 稷山县| 嘉黎县| 福州市| 科尔| 潼南县| 偏关县| 永福县| 巴南区| 丹凤县| 平凉市| 吉林市| 咸阳市| 陇西县| 南江县| 富锦市| 乐至县| 大兴区| 闽清县| 扶绥县|