ASP.NET MVC 2 IgnoreRoute in all directories

Posted by awex on Stack Overflow See other posts from Stack Overflow or by awex
Published on 2010-04-18T10:16:10Z Indexed on 2010/04/18 10:23 UTC
Read the original article Hit count: 421

Filed under:

Hi,

I switched from MVC 1 to MVC 2. I am using a file.axd httphandler in my application and I set routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); in my global routing. Since MVC 2 MVC only ignores requests to /file.axd but not to /folder/file.axd.

Any changes in MVC 2?

I just want to make sure that all requests in any folder to any .axd file will get processed by my httphandler.

Thanks!

© Stack Overflow or respective owner

Related posts about asp.net-mvc