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.
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.
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
That's just to give the route parameter a name or an exception will be thrown. You could have called it {*foo}
.