How do I exclude things that match the specified path for an HttpHandler in ASP.Net?
Posted
by Tim Goodman
on Stack Overflow
See other posts from Stack Overflow
or by Tim Goodman
Published on 2010-03-24T17:06:43Z
Indexed on
2010/03/24
17:13 UTC
Read the original article
Hit count: 271
I know that if I want to have requests for MyPage.aspx go to the class called MyHandler in the assembly called MyAssembly, I can add this to my web.config file:
<configuration>
<system.web>
<httpHandlers>
<add verb="*" path="MyPage.aspx" type="MyHandler, MyAssembly"/>
</system.web>
</configuration>
This works for any MyPage.aspx at the (made up) URL: www.mycoolsite.com/MyProject/[SomePathHere]/MyPage.aspx
What if I want to do it for every MyPage.aspx except www.mycoolsite.com/MyProject/NoHandler/MyPage.aspx
Is there a way to exclude that path from the handler?
© Stack Overflow or respective owner