Building a Simple Blog Engine with ASP.NET MVC and LINQ - Part 2
page 2 of 7
by Keyvan Nayyeri
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 9514/ 438

Default URL Routing Pattern

As I stated, there is a default routing pattern for routing mechanism in ASP.NET MVC framework that you can modify for your own. This mechanism can be modified in the ASP.NET Application Class (Global.asax file).

But here I do not care about routing mechanism details and how to modify it. A future article of this series covers this in good detail, but I just talk quickly about the default routing pattern.

By default, ASP.NET MVC framework routes requests to /Url/ paths to a controller class with UrlController name. As an instance, requests to /Post/ URL will be routed to PostController class by default.

Moreover, all requests to URL's under /Url/ path will be routed to UrlController class as well. For instance, requests to /Post/Technology/Surface will be routed to PostController class.


View Entire Article

Article Feedback

Title:  
Name:  
Url: ( Optional )
Comment:  
Please add 8 and 5 and type the answer here:

User Comments

No comments posted yet.






Ads Powered by Lake Quincy Media
Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2008 ASPAlliance.com  |  Page Processed at 5/13/2008 6:00:13 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search