我有一个ASP.NET Web应用程序,我想知道如何在抛出异常时显示错误消息框.
例如,
try
{
do something
}
catch
{
messagebox.write("error");
//[This isn't the correct syntax, just what I want to achieve]
}
Run Code Online (Sandbox Code Playgroud)
[消息框显示错误]
谢谢