URL Routing with ASP.NET 4 Web Forms (VS 2010 and .NET 4.0 Series)
page 2 of 8
by Scott Guthrie
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 32592/ 56

What is URL Routing?

URL routing was a capability we first introduced with ASP.NET 3.5 SP1, and which is already used within ASP.NET MVC applications to expose clean, SEO-friendly “web 2.0” URLs.  URL routing lets you configure an application to accept request URLs that do not map to physical files. Instead, you can use routing to define URLs that are semantically meaningful to users and that can help with search-engine optimization (SEO).

For example, the URL for a traditional page that displays product categories might look like below:

http://www.mysite.com/products.aspx?category=software

Using the URL routing engine in ASP.NET 4 you can now configure the application to accept the following URL instead to render the same information:

http://www.mysite.com/products/software

With ASP.NET 4.0, URLs like above can now be mapped to both ASP.NET MVC Controller classes, as well as ASP.NET Web Forms based pages.


View Entire Article

User Comments

Title: What about ASP.NET 3.5   
Name: Nicachipal
Date: 2011-02-08 11:08:29 AM
Comment:
Do we have something similar in ASP.NET 3.5 ?
Title: introduction to asp.net 4.0   
Name: Abdul Sami
Date: 2010-01-06 4:13:44 AM
Comment:
See if this article can help you people on asp.net 4.0 features

http://www.codeproject.com/KB/aspnet/Whatis_New_ASP_Net_4.aspx

Product Spotlight
Product Spotlight 





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


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-04-25 8:07:40 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search