Re: [問題] 請較各位大大這段程式碼有什麼問題

看板C_Sharp作者 (小朱)時間17年前 (2008/05/21 12:53), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/5 (看更多)
有一種東西叫做 try/cacth: try { // your code } catch (Exception ex) { // show your error message from ex.Message // or, handle this error if you want. } 用這個來抓錯誤是什麼。 光看你的說明,很難知道問題在哪裡。 只能初步推斷是 SQL 的例外,有可能是指令不對,或是其他的 SQL Server 問題。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 203.70.255.10
文章代碼(AID): #18CwhOOP (C_Sharp)
討論串 (同標題文章)
文章代碼(AID): #18CwhOOP (C_Sharp)