views:

69

answers:

3

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.

+1  A: 

Exception will be thrown, route parameter must have name. The meaning of the * sign is explained here http://stackoverflow.com/questions/323397/file-path-as-mvc-route-argument

er-v
+1  A: 

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

Darin Dimitrov