SlideShare a Scribd company logo
1 of 5
Download to read offline
S.No ASP.NET MVC 3
1

ASP.NET MVC 4

Whether Bundling and Minification
Whether Bundling and Minification
feature is supported in ASP.NET MVC 3? feature is supported in ASP.NET MVC 4?
No
Yes
What is Bundling and Minification?Why
they are important?
It reduces number of HTTP requests that a
web page needs to make. Bundling and
Minification combines individual files into
single, bundled file for scripts and CSS and
then reduce the overall size by minifying the
contents of the bundle.

2

Whether Display Modes feature is
supported in ASP.NET MVC 3?
No

Whether Display Modes feature is
supported in ASP.NET MVC 4?
Yes
What are Display Modes?
Display Modes is new feature provided in
ASP.NET MVC 4. It lets an application select
views depending on the browser which is
making request. For example, if a desktop
browser requests home page of an application
it will return ViewsHomeIndex.cshtml view
and if a mobile browser requests home page it
will return ViewsHomeIndex.mobile.cshtml
view.

3

Empty MVC Project template in
ASP.NET MVC 3:
The ASP.NET MVC 3 Empty project
template is not really empty. It contains css
and js files.

Empty MVC Project template in ASP.NET
MVC 4:
The ASP.NET MVC 4 Empty project
template is really empty. It does not contain
any css and js files.

4

Custom Controllers in ASP.NET MVC 3: Custom Controllers in ASP.NET MVC 4:
In ASP.NET MVC 3 we can only place
In ASP.NET MVC 4 we can place custom
custom controllers inside the Controllers
controller to custom locations.
folder.

5

Whether WebSockets and SignalR
features are supported in ASP.NET MVC
3?
No

Whether WebSockets and SignalR
features are supported in ASP.NET MVC
4?
Yes
What are WebSockets and SignalR?
ASP.NET MVC 4 supports WebSockets along
with the new open source framework SignalR
which allows to set up real time multi-user
communication through open TCP sockets.
6

Whether Recipe feature is supported in
ASP.NET MVC 3?
No

Whether Recipe feature is supported in
ASP.NET MVC 4?
Yes
What are Recipes and provide their
significance?
In technical language ASP.NET MVC 4
recipe is nothing but a dialog box that is
delivered via NuGet with associated UI and
code used to automate specific task. It’s like
GUI for NuGet Package Manager. Recipes
are set of assemblies which are loaded
dynamically by Managed Extensibility
Framework (MEF). MEF provides plugin
model for applications. The main use of
recipes are to automate development task,
tasks that are encapsulated into recipes and
used over and over again. For example,
adding ajax grid to view or manipulating
multiple areas of the application can be
automated using ASP.NET MVC 4 recipes.

7

Is it possible to provide authentication
using popular sites like Facebook or
twitter into the web application using
ASP.NET MVC 3?
No

Is it possible to provide authentication
using popular sites like Facebook or twitter
into the web application using ASP.NET
MVC 4?
Yes
How it can be done?
Using DotNetOpenAuth library we can
provide authentication using OAuth or
OpenID providers. In ASP.NET MVC 4
Internet project template includes this library.

8

Whether Mobile Project Template is
available in ASP.NET MVC 3?
No

Whether Mobile Project Template is
available in ASP.NET MVC 4?
Yes
Why separate mobile project template
while you can render your web application
in mobile without additional
customization?
The mobile project template touch-optimized
UI using jQuery.Mobile.MVC NuGet
Package for smart phones and tablets.

9

Asynchronous controller implementation
in ASP.NET MVC 3?
In ASP.NET MVC 3, to implement
asynchronous controller/methods we need to

Asynchronous controller implementation
in ASP.NET MVC 4?
The ASP.NET MVC 4 Controller class in
combination .NET 4.5 enables us to write
derive controller from AsyncController
rather than from plain Controller class. We
need to create two action methods rather
than one. Fist with suffix “Async” keyword
and second with “Completed” suffix. The
method which initiated asynchronous
process must end with “Async” and the
method which is invoked when the
asynchronous process finishes must end
with “Completed”.
Example:
Please look at the bottom of the table

asynchronous action methods that return an
object of type Task. The .NET Framework 4
introduced an asynchronous programming
concept referred to as a Task and ASP.NET
MVC 4 supports Task. The .NET Framework
4.5 builds on this asynchronous support with
the await and async keywords that make
working with Task objects much less complex
than previous asynchronous approaches. The
await keyword is syntactical shorthand for
indicating that a piece of code should
asynchronously wait on some other piece of
code. The async keyword represents a hint
that we can use to mark methods as taskbased asynchronous methods. To implement
asynchronous action method in ASP.NET
MVC 4 we do no need to derive our
controller class from AsyncController, async
and await in cooperation with Task will do
the magic. To mark the action method
asynchronous use async in method signature.
To wait for the other method to finish use
await and to call multiple parallel methods
use Task. The asynchronous method will
return Task instead of plain ActionResult.
Example:
Please look at the bottom of the table

10

Enhancement in Default Project
Template:
The enhanced default project template is
modern-looking. Along with cosmetic
enhancements, it also employs adaptive
rendering to look nice in both desktop and
mobile browsers without need of any kind
of additional customization.

Enhancement in Default Project Template:
Not Applicable

11

Whether ASP.NET Web API is available
in ASP.NET MVC 3?
No

Whether ASP.NET Web API is available in
ASP.NET MVC 4?
Yes
What is ASP.NET Web API?
ASP.NET MVC 4 includes ASP.NET Web
API, a new framework for creating HTTP
services that can reach a broad range of
clients including browsers and mobile
devices. ASP.NET Web API is also an ideal
platform for building RESTful services.

12

Whether Windows Azure feature is
supported in ASP.NET MVC 3?

Whether Windows Azure feature is
supported in ASP.NET MVC 4?
No

Yes
It supports Windows Azure SDK1.6 and new
releases.
What is Windows Azure?
Windows Azure is an open and flexible cloud
platform that serves as the development, data
storing, service hosting and service
management environment. Windows Azure
provides developers with on-demand compute
and storage to host, scale, and manage web
applications on the internet through Microsoft
data-centers.

Example for Asynchronous controller implementation in ASP.NET MVC 3 :

Example for Asynchronous controller implementation in ASP.NET MVC 4 :

Here the await keyword does not block the thread execution until the task is complete. It signs up
the rest of the method as a callback on the task, and immediately returns. When the awaited task
eventually completes, it will invoke that callback and thus resume the execution of the method right
where it left off.
Reference:
http://onlydifferencefaqs.blogspot.in/2014/02/difference-between-aspnet-mvc-3-and.html

More Related Content

What's hot

ASP .NET MVC
ASP .NET MVC ASP .NET MVC
ASP .NET MVC
eldorina
 

What's hot (20)

TDD with ASP.NET MVC 1.0
TDD with ASP.NET MVC 1.0TDD with ASP.NET MVC 1.0
TDD with ASP.NET MVC 1.0
 
10 things to remember
10 things to remember10 things to remember
10 things to remember
 
Introduction to ASP.NET MVC 1.0
Introduction to ASP.NET MVC 1.0Introduction to ASP.NET MVC 1.0
Introduction to ASP.NET MVC 1.0
 
Technoligent providing custom ASP.NET MVC development services
Technoligent providing custom ASP.NET MVC development servicesTechnoligent providing custom ASP.NET MVC development services
Technoligent providing custom ASP.NET MVC development services
 
Asp 1a-aspnetmvc
Asp 1a-aspnetmvcAsp 1a-aspnetmvc
Asp 1a-aspnetmvc
 
Asp.net mvc
Asp.net mvcAsp.net mvc
Asp.net mvc
 
Asp.net MVC training session
Asp.net MVC training sessionAsp.net MVC training session
Asp.net MVC training session
 
MVC Architecture in ASP.Net By Nyros Developer
MVC Architecture in ASP.Net By Nyros DeveloperMVC Architecture in ASP.Net By Nyros Developer
MVC Architecture in ASP.Net By Nyros Developer
 
ASP .NET MVC
ASP .NET MVC ASP .NET MVC
ASP .NET MVC
 
Asp.net Overview and Controllers
Asp.net Overview and ControllersAsp.net Overview and Controllers
Asp.net Overview and Controllers
 
Difference between MVC 3, 4, 5 and 6
Difference between MVC 3, 4, 5 and 6Difference between MVC 3, 4, 5 and 6
Difference between MVC 3, 4, 5 and 6
 
Angular on ASP.NET MVC 6
Angular on ASP.NET MVC 6Angular on ASP.NET MVC 6
Angular on ASP.NET MVC 6
 
ASP.NET MVC.
ASP.NET MVC.ASP.NET MVC.
ASP.NET MVC.
 
ASP.NET MVC for Begineers
ASP.NET MVC for BegineersASP.NET MVC for Begineers
ASP.NET MVC for Begineers
 
ASP.NET MVC Presentation
ASP.NET MVC PresentationASP.NET MVC Presentation
ASP.NET MVC Presentation
 
Asp.net mvc presentation by Nitin Sawant
Asp.net mvc presentation by Nitin SawantAsp.net mvc presentation by Nitin Sawant
Asp.net mvc presentation by Nitin Sawant
 
Web Programming - 2 Web Framework
Web Programming - 2 Web FrameworkWeb Programming - 2 Web Framework
Web Programming - 2 Web Framework
 
Continuous workflow for a large react native app - mobile at wix
Continuous workflow for a large react native app - mobile at wixContinuous workflow for a large react native app - mobile at wix
Continuous workflow for a large react native app - mobile at wix
 
Getting started with MVC 5 and Visual Studio 2013
Getting started with MVC 5 and Visual Studio 2013Getting started with MVC 5 and Visual Studio 2013
Getting started with MVC 5 and Visual Studio 2013
 
Which is better asp.net mvc vs asp.net
Which is better  asp.net mvc vs asp.netWhich is better  asp.net mvc vs asp.net
Which is better asp.net mvc vs asp.net
 

Similar to Difference between asp.net mvc 3 and asp.net mvc 4

ASP.NET MVC Introduction
ASP.NET MVC IntroductionASP.NET MVC Introduction
ASP.NET MVC Introduction
Sumit Chhabra
 
A Deep Dive into Android App Development 2.0.pdf
A Deep Dive into Android App Development 2.0.pdfA Deep Dive into Android App Development 2.0.pdf
A Deep Dive into Android App Development 2.0.pdf
lubnayasminsebl
 

Similar to Difference between asp.net mvc 3 and asp.net mvc 4 (20)

ASP.NET MVC Introduction
ASP.NET MVC IntroductionASP.NET MVC Introduction
ASP.NET MVC Introduction
 
Murach: An introduction to web programming with ASP.NET Core MVC
Murach: An introduction to web programming with ASP.NET Core MVCMurach: An introduction to web programming with ASP.NET Core MVC
Murach: An introduction to web programming with ASP.NET Core MVC
 
.NET Core, ASP.NET Core Course, Session 18
 .NET Core, ASP.NET Core Course, Session 18 .NET Core, ASP.NET Core Course, Session 18
.NET Core, ASP.NET Core Course, Session 18
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentation
 
Top 10 - ASP.NET Interview Questions And Answers 2023.pdf
Top 10 -  ASP.NET Interview Questions And Answers 2023.pdfTop 10 -  ASP.NET Interview Questions And Answers 2023.pdf
Top 10 - ASP.NET Interview Questions And Answers 2023.pdf
 
Beginners introduction to asp.net
Beginners introduction to asp.netBeginners introduction to asp.net
Beginners introduction to asp.net
 
Benefits of Using ASP.NET For Web Development for Businesses In 2023
Benefits of Using ASP.NET For Web Development for Businesses In 2023Benefits of Using ASP.NET For Web Development for Businesses In 2023
Benefits of Using ASP.NET For Web Development for Businesses In 2023
 
Programming is Fun with ASP.NET MVC
Programming is Fun with ASP.NET MVCProgramming is Fun with ASP.NET MVC
Programming is Fun with ASP.NET MVC
 
Discuss About ASP.NET MVC 6 and ASP.NET MVC 5
Discuss About ASP.NET MVC 6 and ASP.NET MVC 5Discuss About ASP.NET MVC 6 and ASP.NET MVC 5
Discuss About ASP.NET MVC 6 and ASP.NET MVC 5
 
Asp.netmvc handson
Asp.netmvc handsonAsp.netmvc handson
Asp.netmvc handson
 
Asp.net Overview
Asp.net OverviewAsp.net Overview
Asp.net Overview
 
Head first asp.net mvc 2.0 rtt
Head first asp.net mvc 2.0 rttHead first asp.net mvc 2.0 rtt
Head first asp.net mvc 2.0 rtt
 
Mvc
MvcMvc
Mvc
 
Asp.net core tutorial
Asp.net core tutorialAsp.net core tutorial
Asp.net core tutorial
 
A Deep Dive into Android App Development 2.0.pdf
A Deep Dive into Android App Development 2.0.pdfA Deep Dive into Android App Development 2.0.pdf
A Deep Dive into Android App Development 2.0.pdf
 
ASP.NET Identity
ASP.NET IdentityASP.NET Identity
ASP.NET Identity
 
Best of Microsoft Dev Camp 2015
Best of Microsoft Dev Camp 2015Best of Microsoft Dev Camp 2015
Best of Microsoft Dev Camp 2015
 
Top 8 Reasons ASP.NET Core is the Best Framework for Web Application Developm...
Top 8 Reasons ASP.NET Core is the Best Framework for Web Application Developm...Top 8 Reasons ASP.NET Core is the Best Framework for Web Application Developm...
Top 8 Reasons ASP.NET Core is the Best Framework for Web Application Developm...
 
Asp. net core 3.0 build modern web and cloud applications (top 13 features +...
Asp. net core 3.0  build modern web and cloud applications (top 13 features +...Asp. net core 3.0  build modern web and cloud applications (top 13 features +...
Asp. net core 3.0 build modern web and cloud applications (top 13 features +...
 
Introduction to ASP.NET MVC
Introduction to ASP.NET MVCIntroduction to ASP.NET MVC
Introduction to ASP.NET MVC
 

More from Umar Ali

More from Umar Ali (20)

Difference between ActionResult() and ViewResult()
Difference between ActionResult() and ViewResult()Difference between ActionResult() and ViewResult()
Difference between ActionResult() and ViewResult()
 
Link checkers 1
Link checkers 1Link checkers 1
Link checkers 1
 
Affiliate Networks Sites-1
Affiliate Networks Sites-1Affiliate Networks Sites-1
Affiliate Networks Sites-1
 
Technical Video Training Sites- 1
Technical Video Training Sites- 1Technical Video Training Sites- 1
Technical Video Training Sites- 1
 
US News Sites- 1
US News Sites- 1 US News Sites- 1
US News Sites- 1
 
How to create user friendly file hosting link sites
How to create user friendly file hosting link sitesHow to create user friendly file hosting link sites
How to create user friendly file hosting link sites
 
Weak hadiths in tamil
Weak hadiths in tamilWeak hadiths in tamil
Weak hadiths in tamil
 
Bulughul Maram in tamil
Bulughul Maram in tamilBulughul Maram in tamil
Bulughul Maram in tamil
 
Asp.net website usage and job trends
Asp.net website usage and job trendsAsp.net website usage and job trends
Asp.net website usage and job trends
 
Indian news sites- 1
Indian news sites- 1 Indian news sites- 1
Indian news sites- 1
 
Photo sharing sites- 1
Photo sharing sites- 1 Photo sharing sites- 1
Photo sharing sites- 1
 
File hosting search engines
File hosting search enginesFile hosting search engines
File hosting search engines
 
Ajax difference faqs compiled- 1
Ajax difference  faqs compiled- 1Ajax difference  faqs compiled- 1
Ajax difference faqs compiled- 1
 
ADO.NET difference faqs compiled- 1
ADO.NET difference  faqs compiled- 1ADO.NET difference  faqs compiled- 1
ADO.NET difference faqs compiled- 1
 
Dotnet differences compiled -1
Dotnet differences compiled -1Dotnet differences compiled -1
Dotnet differences compiled -1
 
.NET Differences List
.NET Differences List.NET Differences List
.NET Differences List
 
Difference between ajax and silverlight
Difference between ajax and silverlightDifference between ajax and silverlight
Difference between ajax and silverlight
 
Difference between is and as operators in c#
Difference between is and as operators in c#Difference between is and as operators in c#
Difference between is and as operators in c#
 
Difference between c# generics and c++ templates
Difference between c# generics and c++ templatesDifference between c# generics and c++ templates
Difference between c# generics and c++ templates
 
Var vs iEnumerable
Var vs iEnumerableVar vs iEnumerable
Var vs iEnumerable
 

Recently uploaded

Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
Christopher Logan Kennedy
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Recently uploaded (20)

Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 

Difference between asp.net mvc 3 and asp.net mvc 4

  • 1. S.No ASP.NET MVC 3 1 ASP.NET MVC 4 Whether Bundling and Minification Whether Bundling and Minification feature is supported in ASP.NET MVC 3? feature is supported in ASP.NET MVC 4? No Yes What is Bundling and Minification?Why they are important? It reduces number of HTTP requests that a web page needs to make. Bundling and Minification combines individual files into single, bundled file for scripts and CSS and then reduce the overall size by minifying the contents of the bundle. 2 Whether Display Modes feature is supported in ASP.NET MVC 3? No Whether Display Modes feature is supported in ASP.NET MVC 4? Yes What are Display Modes? Display Modes is new feature provided in ASP.NET MVC 4. It lets an application select views depending on the browser which is making request. For example, if a desktop browser requests home page of an application it will return ViewsHomeIndex.cshtml view and if a mobile browser requests home page it will return ViewsHomeIndex.mobile.cshtml view. 3 Empty MVC Project template in ASP.NET MVC 3: The ASP.NET MVC 3 Empty project template is not really empty. It contains css and js files. Empty MVC Project template in ASP.NET MVC 4: The ASP.NET MVC 4 Empty project template is really empty. It does not contain any css and js files. 4 Custom Controllers in ASP.NET MVC 3: Custom Controllers in ASP.NET MVC 4: In ASP.NET MVC 3 we can only place In ASP.NET MVC 4 we can place custom custom controllers inside the Controllers controller to custom locations. folder. 5 Whether WebSockets and SignalR features are supported in ASP.NET MVC 3? No Whether WebSockets and SignalR features are supported in ASP.NET MVC 4? Yes What are WebSockets and SignalR? ASP.NET MVC 4 supports WebSockets along with the new open source framework SignalR which allows to set up real time multi-user
  • 2. communication through open TCP sockets. 6 Whether Recipe feature is supported in ASP.NET MVC 3? No Whether Recipe feature is supported in ASP.NET MVC 4? Yes What are Recipes and provide their significance? In technical language ASP.NET MVC 4 recipe is nothing but a dialog box that is delivered via NuGet with associated UI and code used to automate specific task. It’s like GUI for NuGet Package Manager. Recipes are set of assemblies which are loaded dynamically by Managed Extensibility Framework (MEF). MEF provides plugin model for applications. The main use of recipes are to automate development task, tasks that are encapsulated into recipes and used over and over again. For example, adding ajax grid to view or manipulating multiple areas of the application can be automated using ASP.NET MVC 4 recipes. 7 Is it possible to provide authentication using popular sites like Facebook or twitter into the web application using ASP.NET MVC 3? No Is it possible to provide authentication using popular sites like Facebook or twitter into the web application using ASP.NET MVC 4? Yes How it can be done? Using DotNetOpenAuth library we can provide authentication using OAuth or OpenID providers. In ASP.NET MVC 4 Internet project template includes this library. 8 Whether Mobile Project Template is available in ASP.NET MVC 3? No Whether Mobile Project Template is available in ASP.NET MVC 4? Yes Why separate mobile project template while you can render your web application in mobile without additional customization? The mobile project template touch-optimized UI using jQuery.Mobile.MVC NuGet Package for smart phones and tablets. 9 Asynchronous controller implementation in ASP.NET MVC 3? In ASP.NET MVC 3, to implement asynchronous controller/methods we need to Asynchronous controller implementation in ASP.NET MVC 4? The ASP.NET MVC 4 Controller class in combination .NET 4.5 enables us to write
  • 3. derive controller from AsyncController rather than from plain Controller class. We need to create two action methods rather than one. Fist with suffix “Async” keyword and second with “Completed” suffix. The method which initiated asynchronous process must end with “Async” and the method which is invoked when the asynchronous process finishes must end with “Completed”. Example: Please look at the bottom of the table asynchronous action methods that return an object of type Task. The .NET Framework 4 introduced an asynchronous programming concept referred to as a Task and ASP.NET MVC 4 supports Task. The .NET Framework 4.5 builds on this asynchronous support with the await and async keywords that make working with Task objects much less complex than previous asynchronous approaches. The await keyword is syntactical shorthand for indicating that a piece of code should asynchronously wait on some other piece of code. The async keyword represents a hint that we can use to mark methods as taskbased asynchronous methods. To implement asynchronous action method in ASP.NET MVC 4 we do no need to derive our controller class from AsyncController, async and await in cooperation with Task will do the magic. To mark the action method asynchronous use async in method signature. To wait for the other method to finish use await and to call multiple parallel methods use Task. The asynchronous method will return Task instead of plain ActionResult. Example: Please look at the bottom of the table 10 Enhancement in Default Project Template: The enhanced default project template is modern-looking. Along with cosmetic enhancements, it also employs adaptive rendering to look nice in both desktop and mobile browsers without need of any kind of additional customization. Enhancement in Default Project Template: Not Applicable 11 Whether ASP.NET Web API is available in ASP.NET MVC 3? No Whether ASP.NET Web API is available in ASP.NET MVC 4? Yes What is ASP.NET Web API? ASP.NET MVC 4 includes ASP.NET Web API, a new framework for creating HTTP services that can reach a broad range of clients including browsers and mobile devices. ASP.NET Web API is also an ideal platform for building RESTful services. 12 Whether Windows Azure feature is supported in ASP.NET MVC 3? Whether Windows Azure feature is supported in ASP.NET MVC 4?
  • 4. No Yes It supports Windows Azure SDK1.6 and new releases. What is Windows Azure? Windows Azure is an open and flexible cloud platform that serves as the development, data storing, service hosting and service management environment. Windows Azure provides developers with on-demand compute and storage to host, scale, and manage web applications on the internet through Microsoft data-centers. Example for Asynchronous controller implementation in ASP.NET MVC 3 : Example for Asynchronous controller implementation in ASP.NET MVC 4 : Here the await keyword does not block the thread execution until the task is complete. It signs up the rest of the method as a callback on the task, and immediately returns. When the awaited task eventually completes, it will invoke that callback and thus resume the execution of the method right where it left off.