Global.cs中自动获取未处理的异常
2017-02-06
26
下面就是简单的事例: 1)引起异常的代码 复制代码 代码如下: protected void Button1_Click(object sender, EventArgs e) { int a = 5; int b = 2; int c; c = a / (b - 2); } 2)Global.cs中的代码 复制代码 代码如下: protected void Application_Error(object sender, EventArgs e) { ...