如何提取raiseerror的错误信息后输出到界面上
Posted on 八月 16rd, 2007 由 admin
如何提取raiseerror的错误信息后输出到界面上,各位大哥大姐给点代码,谢谢
推荐阅读
网友: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


讨论区