2013-01-02 34 views
4

我正在浏览asp.net网站上的ASP.Net网页表单教程here:。本教程包含一段自定义错误,这对我来说有点奇怪。Web.Config奇怪的<customErrors>部分?

<customErrors mode="On" defaultRedirect="ErrorPage.aspx?handler=customErrors%20section%20-%20Web.config"> 
    <error statusCode="404" redirect="ErrorPage.aspx?msg=404&amp;handler=customErrors%20section%20-%20Web.config" /> 
</customErrors> 

问:有人可以解释在的defaultRedirect & 查询字符串参数handler=customErrors%20section%20-%20Web.config"重定向

这个语法有特殊含义吗?

回答

5

%20只是URL编码空间。它发送了一个人类可读的名称,该名称重定向到查询字符串中的错误处理程序页面。

+1

感谢马蒂,得到了答案。 – Nexus23