Posts

Showing posts with the label ASP.Net 4.0 New Features

Most important new features in ASP.NET 4.0 - Part 2

Routing in ASP.NET 4 Although routing features comes with ASP.NET 3.5, ASP.NET 4 comes with new additions to make it easier to use the routing mechanisms, such as: The PageRouteHandler class, which is a simple HTTP handler that you use when you define routes. The class passes data to the page that the request is routed to. The new properties HttpRequest.RequestContext and Page.RouteData (which is a shortcut to HttpRequest.RequestContext.RouteData). These properties make it easier to access information that is passed from the route. The following new expression builders, which are defined in System.Web.Compilation.RouteUrlExpressionBuilder and System.Web.Compilation.RouteValueExpressionBuilder:  RouteUrl , which provides a simple way to create a URL that corresponds to a route URL within an ASP.NET server control. RouteValue , which provides a simple way to extract information from the RouteContext object. ...