Ray's Asp.net Blog
Answers and code snippets from ASP.NET projects (Webforms/MVC/Classic ASP)
Pages
Event registration app with QR/Paypal
Home
Monday, December 12, 2011
How ASP.NET MVC routing module works
http://www.simple-talk.com/dotnet/.net-framework/asp.net-mvc-routing-extensibility/
routes.MapRoute("BlogArchive",
"{year}/{month}/{day}",
new { controller = "Blog", action = "List", month = "1", day = "1" },
new { year = @"\d{2}|\d{4}", month = @"\d{1,2}", day = @"\d{1,2}" }
);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment