logo
  • Home
  • My Works
  • Downloads
  • Personal
  • Guest Book
  • About Me

ASP.NET 4 features

Published by Rafeeque B Muhammad on Friday, August 23, 2013 12:00 AM
Updated on Friday, August 23, 2013 12:00 AM


 

·         Built in URL routing

protected void Application_Start(object sender, EventArgs e)

{

SetRouting(System.Web.Routing.RouteTable.Routes);

}

private void SetRouting(System.Web.Routing.RouteCollection routeCollection)

{

routeCollection.MapPageRoute("RouteFriendlyName",

"MyWebsite/RequestParameterName",

"~/Book.aspx");

// you can add other page routes with different names and combinations here

}

·         Compression on session values – session values can be compressed when we are using outproc session type.

<sessionState

mode="SQLServer"

stateConnectionString="connectionstring goes here"

compressionEnabled="true"/>

·         Html Meta tags – introducing the HtmlMeta class for setting the Meta tag descriptions dynamically.

·         Generating client IDs – introduced ClientIDMode attribute in the page level to change the client id generation behaviors.

o   AutoID – same as old version

o   Static –

Eg:

<input name="ctl00$MainContent$textbox1" type="text" id="textbox1" />

<input name="ctl00$MainContent$WebUserControl1$TextBox2" type="text" id="TextBox2" />

o   Predictable

o   Inherit

·         Permanent Redirect

·         Supports of new browsers – HttpBorwserCapabilties are updated with new browser support. eg: Chrome

·         Output /Page level caching extensibility – ASP.NET 4 allow developers to define their own caching provider.

·         View State mode for each control.

o   Enabled

o   Disabled

o   Inherits – this specify the control uses the settings from its parent control.

·         Increase URL character length – earlier it was limited to 260 characters, now it is configurable.

<httpRuntime maxRequestPathLength="360" maxQueryStringLength="1024" />

·         New syntax for Html encodes.

o   In previous versions it implements using Server.HtmlEncode() or HttpUtitlity.Encode()

o   ASP.NET 4 has new syntax <%: content %>

·         Improvements on Microsoft Ajax

o   Script loader – there are some performance improvements on script loader. It supports “lazy load”, it loads the scripts whenever required. It also supports the JQuery script and custom scripts.

o   JQuery integration

o   Client Data Access –by using a pre-defined client controls inside the Ajax Library, developers can easily build asynchronous data-drive application.

 

 

 

Technical Articles

  • All
  • .NET Framework
  • ASP.NET
  • C#
  • Win Forms
  • WCF
  • SharePoint(WSS 3.0)
  • SQL Server
  • TSQL
  • Oracle
  • PL/SQL
  • Performance and Tuning
  • Application and Tools
  • Outlook programming
  • HTML/HTML5/XHTML/DHTML/JAVAScript/CSS
  • Windows Services
  • Web Services
  • Security
  • Web
  • General
  • Architecture

Technical Books

  • All
  • C# Threading
  • WCF

Other Links

  • Important Links

Techies Craft © 2014 | Privacy Policy