Nexus23
Nexus23

Reputation: 6373

Web.Config strange <customErrors> section?

I was going through an ASP.Net web forms tutorial here: on asp.net website. This tutorial contains a section for custom errors, which is a bit strange to me.

<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>

Question: Can someone explain the query string parameter handler=customErrors%20section%20-%20Web.config" in defaultRedirect & redirect?

Does this syntax have a special meaning?

Upvotes: 4

Views: 791

Answers (1)

Matti Virkkunen
Matti Virkkunen

Reputation: 65126

The %20 are just URL encoded spaces. It's sending a human-readable name of what redirected to the error handler page in the query string.

Upvotes: 5

Related Questions