Free download Visual Web Developer book! Visual Studio 2010 Beta 2 and .NET Framework 4 Beta 2
Oct 13

Some of the new features also include making SEO-friendly url’s. Before we used to write some keywords mapping but now it all could be done with code.
Before:
http://ajaxus.net/news.php?newsID=23232

Now:
http://ajaxus.net/news/Url_routing

This can be achieved with the function MapPageRoute.

Handling PostBack Scenarios

URL Routing with ASP.NET 4.0 fully supports postback scenarios. The

control will automatically emit the same URL that caused the page to be rendered. For example, if you access a page with a /products/software URL then any server-side
control within it would render out a
HTML element back to the client – which means that any postback scenarios that happen on the page will preserve the original URL.

Here is ScottGu’s blog post.

Related posts:

  1. Visual Studio 2010 and .NET Framework 4.0
  2. Visual Studio 2010 Beta 2 and .NET Framework 4 Beta 2
  3. ASP.NET 4.0 and Visual Studio 2010 Web Development Beta 2 Overview

Leave a Reply

TopOfBlogs