当前位置:首页 » 多媒体相关

如何提取raiseerror的错误信息后输出到界面上


如何提取raiseerror的错误信息后输出到界面上,各位大哥大姐给点代码,谢谢

推荐阅读

  • “调整”后,我的通话声音并不小 [详细内容]
  • 希捷3次欲撤资无锡揭谜 索取更多政策扶持 [详细内容]
  • 金属品质 256M现代HY-T9超值价699上柜 [详细内容]
  • 怎样使用S508的耳机 [详细内容]
  • Intel推LaGrande标准 欲杜绝芯片泄密之忧 [详细内容]
  • DoCoMo将在北京建立研发中心 试验4G技术 [详细内容]
  • 2.5英寸液晶显示屏 尼康S3降价还送256M卡 [详细内容]
  • 网友回答:
    网友:saucer

    if   the   error   severity   is   larger   than   11,   you   can   use  
       
      try  
      {  
       
      }  
      catch   (sqlexception   ex)  
      {  
          response.write(ex.number);  
          response.write(ex.message);  
      }  
       
      otherwise,   you   need   to   add   a   handler     for   the   sqlconnection   objects   infomessage   event,   see  
       
      http://www.dotnet247.com/247reference/msgs/9/49660.aspx

    .

    讨论区

    Login