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): 43374/ 101

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

User Comments

Title: ASP .Net Developer   
Name: ASP .Net Developer
Date: 2010-05-21 7:26:52 AM
Comment:
Hi
Building a Blog engine throw asp .net is cool.
thanks for this.






Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-05-18 9:19:06 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search