Thursday, February 10, 2011

MSDN Virtual Lab: Introduction to Microsoft ASP.NET Web Forms 4.0

Today MSDN has released a newest Virtual Lab: Introduction to Microsoft ASP.NET Web Forms 4.0. Enjoy it!

Objectives

After completing this lab, you will be better able to:

  • Take advantage of the new ASP.NET Project Templates
  • Control server control ClientIds
  • Enable bi-directional routing support
  • Control the View State at application and page level

Scenario

ASP.NET 4 Web Forms provides enhancements in targeted areas and includes some new features. This Lab is also available online at http://channel9.msdn.com/learn and covers the following features:

New ASP.NET Project Templates

ASP.NET 4 Web Forms includes updated templates for creating new web applications and web sites. These templates include common functionality already implemented, which helps reducing the development time and provides guidance on best practices for building ASP.NET 4 Web applications.

Client IDs

Developers can now manage control IDs that affect rendered client IDs. The Control class now provides a new property called ClientIDMode that allows you to specify what behavior you want the runtime to take when determining whether or not to refactor the client ID upon rendering. This removes the previous bloat in the client ID.

URL Routing

ASP.NET 4 Web Forms introduces the new PageRouteHandler class that integrates URL Routing with Web Form Pages. URL routing in ASP.NET enables you to use URLs that do not have to map to specific files in a Web site. Because the URL does not have to map to a file, you can use URLs in a Web application that are descriptive of the user's action and are more easily understood by users and search engines. In URL routing, you define URL patterns that contain placeholders for values that are used when you handle URL requests. At run time, the pieces of the URL that follow the application name are parsed into discrete values, based on a URL pattern that you have defined.

View State

ASP.NET 4 Web Forms provides a more granular control over the View State. Developers can now disable the View State on a Page and enable it on specific server controls, and also disable it on a control an enable it on its childs.

Estimated time to complete

90 min

Computers used in this Lab

  • VS2010Labs-PC
  • The password for the Administrator account on all computers in this lab is: pass@word1

No comments: