GibboK
GibboK

Reputation: 73938

Alternative to routes.IgnoreRoute in Web Forms

I use asp.net c# using Web Forms.

I use Routing for my website.

I need my Route ignore ELMAH (myFolder/elmah.axd)

I was thinking to use

routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

But IgnoreRoute is from System.Web.Mvc namescape so I cannot use it in my Web Form application.

Thanks

Upvotes: 3

Views: 1408

Answers (1)

Ricketts
Ricketts

Reputation: 5213

You need to use this for web forms:

routes.Ignore("{resource}.axd/{*pathInfo}");

Good Luck!

Upvotes: 3

Related Questions