C# .NET 配置404,500等错误信息

<customErrors mode="On" defaultRedirect="viewAll.html"><!--所有的错误显示页-->
     <error statusCode="403" redirect="view403.html" /><!--针对403的错误页-->
     <error statusCode="404" redirect="view404.html" /><!---针对404的错误页-->
   <error statusCode="500" redirect="view500.html /"><!--针对500的错误页-->
</customErrors>

 

posted @ 2018-03-29 13:21  紫晶城  阅读(322)  评论(1编辑  收藏  举报