随便在页面上throw一个错误, Application_Error毫无反应
解决方案 »
- 点击一个HyperLink控件,打开一个新的tab。
- session~~见鬼了两个线程居然共用一个session?????
- 想请问,aspx文件没有对应的.cs文件是怎么回事?
- 100分急紧求助,数据绑定问题
- 请问ASP.NET在WAP中应用List控件如何实现翻页功能?
- 网页中关键字查询
- asp.net的表单验证重定向,只在框架的一部分显示,怎样才能在框架的全部显示?
- 奇观现象,图片有时能出来有时不能
- 例如 http://localhost/api.js?id=128 怎么在api.js里取得id的值?
- 帮我看看错在哪里好吗?
- 数据显示问题(使用Respon.Write)。
- 如何用js验证asp:textbox
throw new Exception("test error")global.asax当中有<%@ Application Language="c#" %>
<script runat="server">
void Application_Error(object sender, EventArgs e) {
//没有执行到这里
Session[StiILearn.Global.SessionVars.AppErrorPath] = Request.Url.ToString();
Server.Transfer(Request.ApplicationPath + "/Error.aspx");
}
系统只显示默认的错误输出
<customErrors mode="On" defaultRedirect="Error.aspx">
</customErrors>
在VS2003中没有问题,但是在VS2005中
Global.asax中定义的方法通常不被执行