Answer:
It is a class used to issue the HTTP 403 error
"Forbidden: Access is denied" or "This type of page is not served" error messages.
when an attempt is made to access a resource mapped to this handler.
You can use it to protect your files.
example:
In the Web.Config file
<configuration>
<system.web>
<httpHandlers>
<add verb="*" path="*.aspx" type="System.Web.HttpForbiddenHandler"/>
</httpHandlers>
</system.web>
</configuration>
when you try to open .aspx page, "this type of page is not served" error message will be displayed.
Asked In: Many Interviews |
Alert Moderator