10-4 Episode 10: Making Web Deployment Easier

In this episode of 10-4, we introduce another new feature of ASP.NET WebForms 4.0: Routing. The ASP.NET Routing engine was added in the .NET Framework 3.5 SP1 release and is heavily leveraged by both ASP.NET MVC and ASP.NET Dynamic Data to provide bi-directional routing functionality. With the release of ASP.NET WebForms 4.0, you can take full advantage of the common route engine that allows you to customize the URLs that your application exposes. In addition, new expression builders allow you to generate dynamic URLs that are based on your route definitions, alleviating you from having to hard code static links.
For more 10-4 episodes, be sure to visit:
https://channel9.msdn.com/shows/10-4
Visual Studio Topic Area on Channel 9:
https://channel9.msdn.com/VisualStudio
Visual Studio 2010 CTP VPC:
http://tinyurl.com/GetCTP
ASP.NET Routing:
https://msdn.microsoft.com/en-us/library/cc668201.aspx
10-4! Over and out!
And about new rendering mode of controls.
Thank you.
Very well implemented very useful feature!
One question: what about urls localization?
Should I populate the RouteTable by hand for every languages or there is some resource related stuffs in the API?
Thx
Thank you JC! I wrote you some ideas a month ago.
Do the new route tools help in moving from a site with identity keys (int) to text values.
products.aspx?pid=1
becomes
products/chairs/
I guess it would be difficult to map all the number / string pairs as routes in a config file. I assume they could be added programatically on application start. They would have to be recreated if something was later added to the database?
Or do you suggest moving away from passing the primary keys of database related objects and instead passing a unique string?
Great to hear!
Is there a source file included with demo?
I have been trying to run this and keep getting file not found error I am using VS2010 Beta 2