What’s new in ASP.NET 4.5

Today, mobile phones have unlimited data plans, the home connections have reached 100 Mbit/s speed heights and to decrease the output size, we just need to tick check box in the IIS, therefore, the output, weather be it the static or the dynamic, is compressed. Therefore, the “HTML optimizers” era of tools, which remove the extra spaces as well as “unneeded” tags from the markup, is over. One more thing, which is helpful in avoiding the traffic jams, was the Ajax. It has killed 2 birds with single shot – with decreased traffic flow through only up or down loading data, the application needs at the time, with that, increased the result time. However, it does have its cost. Every small callback done by the Ajax is just like an ordinary callback, exclude that, it transfers smaller data. However it is still a connection. Here you can see the problem. You are inquiring every individual thing that you request from the server, through sending the individual requests as well as parsing the responses and received files. This overhead is heavy even though the output is cached or compressed on the server.

Bundling: The threat of performance was identified a while ago, with some optimization guides have suggested to merge the external JavaScript script-files into one as well as do the same with CSS (Cascading Style Sheets) files. It certainly worked, however it was proved to be hell for the developers, because the files were needed to be separately maintained by various authors, and merging them into a file was not easy. Microsoft has solved this difficulty without trying to change the standards or coding behavior. Now, you just need to keep all the JavaScript as well as CSS files together, as per the purpose instead of multiple.

<link href=”styles/mystyle.css” rel=”Stylesheet” />

you need to type this:

<link href=”styles/css” rel=”Stylesheet” />

This will do the rest. It will take all the .css files from styles directory, making one virtual-style sheet as well as send it to client in single response. Relying on amount of the css files, it can decrease loading time of the web page with up to 20%. The same happens with JavaScript files. This new feature of the ASP.NET 4.5 is named Bundling. It works with the Visual Studio 2010 designer after installing .NET 4.5 support.

Strongly Types the Data Controls – one of the pet upsets around the non-MVC ASP.NET databinding is “bind and hope” concept, which Eval has. It always felt bit crappy – hopefully it will change now.

Click and create new event – This is a nice solution to a small irritation, no more typing fortified void the btnMyThingie_Click – sometimes, the small things make big differences in your everyday work flow.

Interesting point about new features of the ASP.NET is when they are presented; they produced massive recoil from the people using the 3rd party libraries for achieving same functionality. Its reason is completely psychological. Evidently, some projects have to die. But that’s how it goes!

This entry was posted in Web Development and tagged , , , , . Bookmark the permalink.
© Copyright 2011 PeopleACE. All rights reserved.