如何在ASP.Net中获取标签的错误代码 [英] How to get the error code for tag in ASP.Net

查看:106
本文介绍了如何在ASP.Net中获取标签的错误代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在ASP.Net中,当在web.config文件中使用customError标记时,我们需要为错误代码提供任何错误,并提供指向该错误的页面,

默认情况下,我得到其中两个,例如找不到文件"(404).谁能告诉我如何找到其他人.

谢谢:)

Hi,

In ASP.Net when using the customError tag in the web.config file we need to give the error codes any error and the page to direct to on that error,

By default I get two of them like File Not Found (404). Can anyone tell me how to find the others.

Thanks :)

推荐答案

Wikipedia: HTTP状态代码列表 [ ^ ]
W3C: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html [^ ]
Wikipedia: List of HTTP status codes[^]
W3C: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html[^]


检查此项.您可以看到所有类型的错误.
http://www.beansoftware.com/ASP.NET-Tutorials/Custom-Error- Pages.aspx [ ^ ]
Check this. You can see all type of errors.
http://www.beansoftware.com/ASP.NET-Tutorials/Custom-Error-Pages.aspx[^]


请按照离线查找步骤进行操作.

1.打开IIS.
2.右键单击网站,然后单击属性.
3.在里面可以找到 Customerros TAB

我的IIS版本是5.1,您将以另一种方式找到另一个版本.
Follow the step for finding it offline.

1. Open IIS.
2. Right click to WebSites and click properties.
3. Inside you will find Customerros TAB

My IIS version is 5.1, You will find in another version with some another way.


这篇关于如何在ASP.Net中获取标签的错误代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆