SlideShare a Scribd company logo
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 (20)

PPT
TDD with ASP.NET MVC 1.0
Shiju Varghese
 
PDF
10 things to remember
sonia merchant
 
PPT
Introduction to ASP.NET MVC 1.0
Shiju Varghese
 
PPTX
Technoligent providing custom ASP.NET MVC development services
Aaron Jacobson
 
PDF
Asp 1a-aspnetmvc
Fajar Baskoro
 
PPT
Asp.net mvc
Naga Harish M
 
PPTX
Asp.net MVC training session
Hrichi Mohamed
 
PPT
MVC Architecture in ASP.Net By Nyros Developer
Nyros Technologies
 
PPTX
ASP .NET MVC
eldorina
 
PPTX
Asp.net Overview and Controllers
Mustafa Saeed
 
PPTX
Difference between MVC 3, 4, 5 and 6
Bhaumik Patel
 
PPTX
Angular on ASP.NET MVC 6
Noam Kfir
 
PPTX
ASP.NET MVC.
Ni
 
PPTX
ASP.NET MVC for Begineers
Shravan Kumar Kasagoni
 
PPTX
ASP.NET MVC Presentation
Volkan Uzun
 
PPTX
Asp.net mvc presentation by Nitin Sawant
Nitin S
 
PDF
Web Programming - 2 Web Framework
AndiNurkholis1
 
PPTX
Continuous workflow for a large react native app - mobile at wix
Shalom Yerushalmy
 
PPTX
Getting started with MVC 5 and Visual Studio 2013
Thomas Robbins
 
PPTX
Which is better asp.net mvc vs asp.net
Concetto Labs
 
TDD with ASP.NET MVC 1.0
Shiju Varghese
 
10 things to remember
sonia merchant
 
Introduction to ASP.NET MVC 1.0
Shiju Varghese
 
Technoligent providing custom ASP.NET MVC development services
Aaron Jacobson
 
Asp 1a-aspnetmvc
Fajar Baskoro
 
Asp.net mvc
Naga Harish M
 
Asp.net MVC training session
Hrichi Mohamed
 
MVC Architecture in ASP.Net By Nyros Developer
Nyros Technologies
 
ASP .NET MVC
eldorina
 
Asp.net Overview and Controllers
Mustafa Saeed
 
Difference between MVC 3, 4, 5 and 6
Bhaumik Patel
 
Angular on ASP.NET MVC 6
Noam Kfir
 
ASP.NET MVC.
Ni
 
ASP.NET MVC for Begineers
Shravan Kumar Kasagoni
 
ASP.NET MVC Presentation
Volkan Uzun
 
Asp.net mvc presentation by Nitin Sawant
Nitin S
 
Web Programming - 2 Web Framework
AndiNurkholis1
 
Continuous workflow for a large react native app - mobile at wix
Shalom Yerushalmy
 
Getting started with MVC 5 and Visual Studio 2013
Thomas Robbins
 
Which is better asp.net mvc vs asp.net
Concetto Labs
 

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

PPTX
SoCal Code Camp 2011 - ASP.NET MVC 4
Jon Galloway
 
PDF
Introduction to ASP.NET MVC
Sirwan Afifi
 
PPTX
ZZ BC#8 Hello ASP.NET MVC 4 (dks)
Chalermpon Areepong
 
PPTX
MVC 4
Vasilios Kuznos
 
PPTX
Mvc4
Muhammad Younis
 
PPTX
SoCal Code Camp 2011 - ASP.NET 4.5
Jon Galloway
 
PPTX
MVC patten relate using in. net core latest varsion
sachingothi25
 
PDF
ASP.NET MVC 2.0
Buu Nguyen
 
PPTX
SoftServe - "ASP.NET MVC як наступний крок у розвитку технології розробки Web...
SoftServe
 
DOCX
Asynchronous reading and writing http r equest
Pragyanshis Patnaik
 
PDF
Introduction Asp.Net MVC5 |MVC5 Tutorial for Beginners & Advanced | Dot Net T...
Dot Net Tricks
 
PPTX
Asp.Net MVC Intro
Stefano Paluello
 
PPTX
Asp.net With mvc handson
Prashant Kumar
 
PPTX
ASP.NET Core 2.1: The Future of Web Apps
Shahed Chowdhuri
 
PPT
Future ASP.NET features for UID / HTML developers
Mark Everard
 
PPTX
ASP.NET Core 2.1: The Future of Web Apps
Shahed Chowdhuri
 
PPTX
Mvc 4.0
Ram Ayyalaraju
 
PPTX
ASP .NET MVC Introduction & Guidelines
Dev Raj Gautam
 
DOCX
ASP.NET MVC3 RAD
Mădălin Ștefîrcă
 
PPTX
Asynchronous programming - .NET Way
Bishnu Rawal
 
SoCal Code Camp 2011 - ASP.NET MVC 4
Jon Galloway
 
Introduction to ASP.NET MVC
Sirwan Afifi
 
ZZ BC#8 Hello ASP.NET MVC 4 (dks)
Chalermpon Areepong
 
SoCal Code Camp 2011 - ASP.NET 4.5
Jon Galloway
 
MVC patten relate using in. net core latest varsion
sachingothi25
 
ASP.NET MVC 2.0
Buu Nguyen
 
SoftServe - "ASP.NET MVC як наступний крок у розвитку технології розробки Web...
SoftServe
 
Asynchronous reading and writing http r equest
Pragyanshis Patnaik
 
Introduction Asp.Net MVC5 |MVC5 Tutorial for Beginners & Advanced | Dot Net T...
Dot Net Tricks
 
Asp.Net MVC Intro
Stefano Paluello
 
Asp.net With mvc handson
Prashant Kumar
 
ASP.NET Core 2.1: The Future of Web Apps
Shahed Chowdhuri
 
Future ASP.NET features for UID / HTML developers
Mark Everard
 
ASP.NET Core 2.1: The Future of Web Apps
Shahed Chowdhuri
 
ASP .NET MVC Introduction & Guidelines
Dev Raj Gautam
 
ASP.NET MVC3 RAD
Mădălin Ștefîrcă
 
Asynchronous programming - .NET Way
Bishnu Rawal
 
Ad

More from Umar Ali (20)

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

Recently uploaded (20)

PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 

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.