Difference between MVC 2 and MVC 3 in ASP.NET
-
S.No MVC 2MVC 31View Engines:MVC 2 uses only Web Forms view engine (.aspx).View Engines:The view engines used in the ASP.NET MVC 3 Framework are the Razor View Engine (.cshtml or .vbhtml) and the Web Forms view engine (.aspx).2 Chart, WebGrid, WebImage, WebMail Controls:Not AvailableChart, WebGrid, WebImage, WebMail Controls:Available3 Objects available for sharing data between View and Controller:TempData, ViewDataObjects available for sharing data between View and Controller:TempData, ViewData ,ViewBag4 Web Forms view engine syntax:<%=Html code %>Razor View Engine syntax:@Html code5 Support for jQuery:GoodSupport for jQuery:Better6 Support for Dependency Injection:GoodSupport for Dependency Injection:Better7 Support of Layouts:Only Master Page (.master)Support of Layouts:Both Master Page (.master) and Layout Page (_Layout.cshtml)
References:
Note:
Master
pages are the same if we are using the .aspx view engine. If we are
using Razor, then it's the Layout page.
Great article..
ReplyDeleteASP.Net MVC Training
Online MVC Training
Online MVC Training from India
MVC Training in Chennai