ASP.NET 4.0 – new features
Filed in ASP.NET on Jul.14, 2010
Topic is getting old, but still worth blogging.
- web.config - If you are a developer from .NET Framework 1.0 to 3.5, you might have sensed the size increase of configuration files. Really, the 3.5 is full of junk content (joking!). The config file of 4.0 looks like this:
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true"
targetFramework="4.0" />
</system.web>
</configuration>
Another useful feature addition is about multi-targeted configuration file. You can do conditional configurations inside the config file using XSL Transformations.
- Friendly URLS – or routing – This version’s routing provides a relatively simple way to create clean and good-looking URLS. This is one of the SEO-friendly feature.
- Improved Session State – This version will allow you to turn-on or off the usage of session state programmatically. Improvement in serialization of session data is another major enhancement.
- Output caching – Improved output caching mechanism. Caching is basically used for the improvement of performance. This version introduces a provider model for the OutputCache module so it becomes possible to plug-in custom storage strategies for cashed pages.
- HTTP 301 – The new introduction – Response.RedirectPermanent() will issue a ‘moved permanenetly’ response. The existing redirect method gives a 302 response usually. This is again a SEO friendly improvement.
- Preloading applications – when you call your application for the first time, there will be a lag because it is loading necessary resources in memory and a warm up. If your application have to load much data, then definitely the application is going to be very slow. To avoid this you can let your application to initialize itself first before it starts accepting requests. This feature is available from IIS 7.5 which comes with Windows7 and Windows Server 2008 Release2.
- Performance improvements – This version includes a number of invisible performance fixes in its runtime. We do not need to do anything special to achieve this as these are managed internally.
I have not tested all of these features yet but will do it in coming days for sure.
Here is a link in which you will get more info: http://www.west-wind.com/Weblog/posts/571334.aspx
Related posts:
Tags: ASP.NET























Leave a Reply
You must be logged in to post a comment.