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,159
  • 1
  • 11
  • 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,405
  • 3
  • 30
  • 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
  • 1,023,142
  • 271
  • 3,287
  • 2,928