Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: MVC MVC3 MVC2 MVC4
please can anyone explain difference between MVC and MVC2and MVC3and MVC4
 
one of my friend said that in mvc3
.aspx is view
.aspx.cs is divided into controller and model.
rest we have Business logic layer and
Data Layer
is it correct .
 
Thanks
Srinivas
Posted 3-Jul-12 8:04am
srinvas685
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

The MVC 4 improve those features:
 
Refreshed and modernized default project templates
New mobile project template
Many new features to support mobile apps
Recipes to customize code generation
Enhanced support for asynchronous methods
 

More about view Engines. Like Razor View Engine better than MVC3
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

This is the sort of question that requires considerable research, there is no simple answer: try this[^].
  Permalink  
Comments
srinvas at 3-Jul-12 16:43pm
   
thanks and what about the
.aspx is view
.aspx.cs is divided into controller and model.
rest we have Business logic layer and
Data Layer
is it correct .
Richard MacCutchan at 4-Jul-12 3:54am
   
As I said above this is not the sort of question that has a one line answer. You need to go and read some articles and technical papers on the subject to understand it fully.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

I just stumbled upon this page after doing an internet search. Ironically, the search terms suggested in Answer 1 are pretty close to the search terms that had gotten me here.
 
I did, however, manage to find a summary of the differences between MVC2, MVC3, and MVC4:
 
http://freefeast.info/general-it-articles/difference-between-mvc2-mvc3-mvc4-mvc2-vs-mvc3-vs-mvc4/[^]
 
This is clearly too late to help the original poster, but might be useful to others looking for the same info.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

Differences among MVC2, MVC3 and MVC4
 
View Engine :
View Engine is responsible for rendering of the HTML code from your views to the browser.
MVC 2 uses only Web Forms view engine (.aspx) as a default View Engine.
MVC3 uses Razor View Engine (.cshtml for c# and .vbhtml for Visual Basic) and Web Forms view engine (.aspx).
MVC4 also uses Razor View Engine as a default view engine with some new features like condition attribute and ‘Tilde slash’.
 
Chart, WebGrid, Crypto,WebImage, WebMail Controls :
All these are not available in MVC2.
All these are available in MVC3 and in MVC4.
 
Syntex :
(HTML Syntax) Web Forms view engine syntax: <%=Html code %> in MVC2.
(Razor Syntax) Razor View Engine syntax: @Html code in MVC3.
MVC4 has the same Razor View Engine Syntax but with the addition of new features like conditional attribute and ‘Tilde Slash’ i.e. URL resolution.
 
Objects available for sharing of data between View and Controller :
TempData, ViewData are available in MVC2.
TempData, ViewData ,ViewBag are available in MVC3.
TempData, ViewData ,ViewBag are available in MVC4.
> TempData is used with current and subsequent request i.e. when you know the next view to be redirected.
> In ViewData, dictionary of objects are accessible via strings as keys.
> ViewBag was added in the C# 4.0 which uses the dynamic feature that allows to add properties of an object dynamically . We can say that ViewBag = ViewData + dynamic feature around the ViewData dictionary.
 
Jquery Support :
Jquery support is Good in MVC2.
Jquery support is Better in MVC3.
MVC4 provides better support for Jquery like Jquery Mobile.
 
Dependency Injection Support :
Dependency injection is Good in MVC2.
It provides powerful hooks with Dependency Injection and Global Action Filters in MVC3.
Better support in MVC4.
 
Layout Support :
Supports only Master Page in MVC2.
Supports not only Master Page but also Layout Page in MVC 3 and in MVC4.
 

Validation :
Client-side Validation and Asynchronous controllers is there in MVC2.
Unobtrusive Ajax and Client side Validation, Jquery Validation and JSON binding support is in MVC3.
Client side validation, Jquery validation and enhanced support for asynchronous methods in MVC4.
 
Project Templates :
MVC3 supports project templates enabled by HTML 5.
MVC4 supports many new features for mobile apps and also provides new mobile project template and default templates are refreshed and modernized.
 

 
Somewhere I have read this. It may help you.
  Permalink  
Comments
Wes Aday at 9-Jul-14 8:14am
   
Do you think maybe in the last 2 years since this non question was asked that it's a possibility that the OP has learned to use a search engine himself?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 5

<pre lang="HTML"><pre lang="Javascript"><pre lang="Delphi"><pre lang="Delphi"><pre lang="Delphi"><pre lang="Delphi"><pre lang="Delphi"><pre lang="Delphi"><pre lang="Delphi"><pre lang="Delphi"><pre lang="java"><pre lang="java">
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 384
1 Maciej Los 290
2 Sergey Alexandrovich Kryukov 230
3 CPallini 170
4 Shweta N Mishra 165
0 OriginalGriff 7,760
1 Sergey Alexandrovich Kryukov 7,072
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,785


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 19 Nov 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100