ASP.NET 4 RouteDictionary does not take the default values

green_e_zeleno

New Member
I have this route in ASP.NET 4\[code\]routes.MapPageRoute("Professions", // Route Name "authors/profession/{Profession}/{letter}/page{pager}", // Url and Parameters "~/Authors/Profession/Default.aspx", true, new System.Web.Routing.RouteValueDictionary { { "letter", "a" }, { "pager", "1" } }); // \[/code\]It works if I access the page like this http://www.mysite.com/authors/profession/actor/a/page1but this does not work http://www.mysite.com/authors/profession/actor (it should add automatically the letter 'a' and page 1, what I am doing wrong?
 
Top