更新时间:2023-12-05 23:07:46
您也可以直接在web.config中设置此错误页面
有关更多信息,请检查此链接
http://www.asp.net/hosting/tutorials/displaying-a- custom-error-page-cs
希望对您也有帮助
***的
Hi,
you can set this error page directly in web.config also
for more info check this link
http://www.asp.net/hosting/tutorials/displaying-a-custom-error-page-cs
I hope it helps you also
All the Best
嘿哥们,
您可以尝试使用Server.Transfer("ErrorPage.aspx")
祝您好运
Hey Buddy,
You can try by using Server.Transfer("ErrorPage.aspx")
Best of Luck
从您的Web配置页面将自定义错误"设置为开".
无需处理Page_Error事件
Set Custom error to On from your web config page.
No need to go with Page_Error Event