Tuesday, September 27, 2011

URL Routing

URL Routing is so much easier in .NET 4.0. A quick overview of routing is basically where you would pass values to a folder structure instead of parameters in the url string.

For example:
http://website.com/food/burgers

instead of:
http://website.com/food/foodItemCateogry.aspx?CategoryID=3

The first example is much nicer for SEO reasons, makes it easier to remember, and also makes the site a little less "hackable". I don't really know how else to explain it but here's an article that explains it all.

http://msdn.microsoft.com/en-us/library/cc668201.aspx

I recently had to implement this on a site I was working on and it worked great, and it was SUPER easy in .NET 4.0.

No comments:

Post a Comment