2

The ignore route is defined like this:

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

Why not

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

What is the significance of pathInfo?

Thanks.

rkrauter
  • 1,151
  • 1
  • 9
  • 23

2 Answers2

2

Exception will be thrown, route parameter must have name. The meaning of the * sign is explained here File path as MVC route argument

Community
  • 1
  • 1
er-v
  • 4,325
  • 3
  • 27
  • 37
0

That's just to give the route parameter a name or an exception will be thrown. You could have called it {*foo}.

Darin Dimitrov
  • 994,864
  • 265
  • 3,241
  • 2,902