Nov 29, 2012

MVC 4 Features

11/29/2012 01:59:00 AM



Ø       Bundling & Minification
o        Instead of <script href=”/Scripts/main.js” you add <script href=”/Scripts”. This will combined all scripts in the folder in to one HTTP request and minify it all. It can also add a unique script to the end causing the bundle to cache for a year, then if any files in the bundle change this will update causing a refresh of the css/js.
o        Coffeesciprt & Less support when registering custom bundles allowing built in transformation from asp.net on the server load of these types
Ø       Extension to razor scripts
o        You can now use the tilde (~) in any html attribute and razor will automatically resolve to the correct URL
o        Conditional attributes eg <div class=”@myclass”>Content</div>. If variable myclass is null or empty the class attribute will not render, works on any attribute making cleaner code
Ø       WebAPI
o        Allows the building of HTTP APIs that automatically can serialize to the format requested such as xml/json
o        Support oData so that if the returned object support iQueryable parameters can be added to the return to subsets (paging, top n etc)
o        Allows hosting of WebAPI either in an area web, console, service, windows 8
o        Allows results to easily return custom HTTP response codes and location header for querying data
Ø       Mobile development
o        Supports adaptive rendering using media queries
o         Allows creation of different mobile specific views
o        Supports mobile templating engines such as jQuery mobile
Ø       Real time communication
o        Uses SignalR
o        Automatically negotiates the transport (essential using the most optimised form of transportation)
o        .NET way of doing what everyone is using node.js for
o        Allows the server to call JavaScript, e.g pushes a call to the browser thus executing some JavaScript
Ø       Async keyword
o        As of VS11 support Async keyword to allow more performance and scalability

Written by

We are Creative Blogger Theme Wavers which provides user friendly, effective and easy to use themes. Each support has free and providing HD support screen casting.

0 comments:

Post a Comment

Recent Posts
Popular Articles

 

© 2013 MUNISH ORACLE DBA& .Net Developer. All rights resevered. Designed by Templateism

Back To Top