怎样设置自定义的出错页! asp.net 2.0中,怎样在web.config中设置当程序出错时,转到一个自定义的出错页面中,而不是显示asp.net 的那些默认的出错页?就是所有的出错都转到一个页. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你可以在web.config中定义所有的出错代码都跳转到相同的页面就可以了嘛!!!例如<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"> <error statusCode="404" redirect="GenericErrorPage.htm" /> </customErrors> 我认为比较好的方法是在global.asax中的Application_Error事件中去捕获错误信息发到自己的邮箱,完了,转向到一个错误页。(这个错误页可以自己定制一下。) 就用这个<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"> <error statusCode="404" redirect="GenericErrorPage.htm" /> </customErrors> 谁能帮忙达到这个效果,50分相送。 ViewState问题 为何访问不了类库的其他类? 通过什么验证是否登录 IEWebControls安装问题 关于向数据库里插入Word表格的问题 怎样删除临时文件夹里面的文件 求TaskVision的DataBase Script! 寻求赋值类对象的通用方法!!大家来顶顶啊... DataGrid如何添加一个js对话框 哪位大哥帮我瞧瞧这段代码出了什么问题 急求RSS用C#实现的源码下载.................
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="404" redirect="GenericErrorPage.htm" />
</customErrors>
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="404" redirect="GenericErrorPage.htm" />
</customErrors>