“/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,而導致的錯誤。
新聞熱點
疑難解答
圖片精選