FI_VS2010_04 – First Impressions Visual Studio 2010 – ASP.NET 4.0 Web Forms Routing

Remove ugly querystring parameters from your URLs and create a more RESTful and aesthetic URL in your web applications using Routes, new in Web Forms. This video explains how this feature — already available in Visual Studio 2008 SP1 for ASP.NET MVC and Dynamic Data — can make your apps comply with a growing trend on the internet. Beyond the basics, we demonstrate how to add expressions to produce links (NavigateUrl property of the ASP.NET Hyperlink control) that point to our route maps. Further, we create some extension methods for the Page class to help us generate URLs from database expressions (which we suspect will be added by Microsoft when Visual Studio 2010 goes live.) Finally we explain and demonstrate the benefit of using the routing system and helper methods instead of simply “hard coding” the URLs in our aps … the payoff is that you can easily re-arrange the routes and the URLs will “magically” continue working. Guest starring in this episode: the EntityDataSource control and Entity Framework (we’ll create an entire series about these features.)

« Previous LessonFirst Impressions Visual Studio 2010Next Lesson »

About this video:

Duration: 26 Minutes, 51 Seconds
Recorded Using: Visual Studio 2010 Beta 1 or Greater


Our Really Really Really Big Sale - 30% Off - ONLY A FEW HOURS LEFT!!!    Learn more ...