ASP.NET MVC 4WORKSHOP-1Alok Kumar PandeyDirector, Strategic Product DevelopmentWelcometo
ASP.NET MVC 4 It is an open source web application framework Implements the model view controller (MVC) pattern. It is ...
License Apache License 2.0 In March 2012, Microsoft had released part of their web stack (including ASP.NETMVC, Razor an...
Why MVC? It helps to reduce the complexity by dividing an application into Model, View and Controller. This separation ...
MVC Architecture The Model-View-Controller (MVC) pattern is an architectural design principle The Model Model represent...
Comparing MVC with Web Forms Both MVC and Web form are built on ASP.NET Framework MVC is full of scripting technologies...
View Engine View Engine is responsible for rendering the HTML from views to the browser Currently there are few number o...
The MVC 4 improved features Refreshed and modernized default project templates New mobile project template Many new fea...
Global.asax FileGlobal.asaz is divided into 6 section App_Start AreaRegistration WebApiConfig FilterConfig RouteConfi...
NoteLayout.cshtml => Master PagePartial.cshtml => User Control@RenderSection(“Section Name”, required:true/false)@RenderBo...
Note Calling a MVC Controller and Action Method using HTML Button or Image<input type="button" title="Delete" value="D"o...
Demo API API Documentation CRUD
Thank You?
Upcoming SlideShare
Loading in...5
×

ASP.NET MVC 4 WorkShop

4,848

Published on

ASP.NET MVC 4 WorkShop

Published in: Technology
0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
4,848
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
4
Embeds 0
No embeds

No notes for slide

Transcript of "ASP.NET MVC 4 WorkShop"

  1. 1. ASP.NET MVC 4WORKSHOP-1Alok Kumar PandeyDirector, Strategic Product DevelopmentWelcometo
  2. 2. ASP.NET MVC 4 It is an open source web application framework Implements the model view controller (MVC) pattern. It is a framework for building scalable Secureweb applications using well-established design patterns.
  3. 3. License Apache License 2.0 In March 2012, Microsoft had released part of their web stack (including ASP.NETMVC, Razor and Web API) under an open source license (Apache License 2.0) Download from Codeplex.comhttp://aspnetwebstack.codeplex.com/
  4. 4. Why MVC? It helps to reduce the complexity by dividing an application into Model, View and Controller. This separation (loose coupling) helps in Isolation of components while development The separation provides better support for Test-driven development (TDD). ASP.NET MVC web site are Good in performance and also easy to maintain.
  5. 5. MVC Architecture The Model-View-Controller (MVC) pattern is an architectural design principle The Model Model represents core business logic and data The View View is responsible for transforming a model or models into a visual representation The Controller Controller acts as the coordinator between the view and the model
  6. 6. Comparing MVC with Web Forms Both MVC and Web form are built on ASP.NET Framework MVC is full of scripting technologies Requires a good command over scripting technologies In MVC there are no server controls supported Its fully depend on HTML controls Web forms web development is very easy Compared to MVC apps Web forms doesnt require a developer To be an expert in JavaScript and HTML Web form is very rich with server controls
  7. 7. View Engine View Engine is responsible for rendering the HTML from views to the browser Currently there are few number of view engines available for MVC Top four view engines are Razor, traditional ASPX, Spark and NHaml Razor is the preferred View Engine for MVC ASPX View Engine is the legacy View Engine This option is there for backward compatibility We can use multiple view engines in ASP.NET MVCTo read more about different view engineshttp://www.codeproject.com/Articles/467850/ASP-NET-MVC-view-engines
  8. 8. The MVC 4 improved 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 Add Controller to any project folder Bundling and Minification OAuth and OpenIDAnd many morehttp://www.asp.net/whitepapers/mvc4-release-notes
  9. 9. Global.asax FileGlobal.asaz is divided into 6 section App_Start AreaRegistration WebApiConfig FilterConfig RouteConfig BundleConfig AuthConfig
  10. 10. NoteLayout.cshtml => Master PagePartial.cshtml => User Control@RenderSection(“Section Name”, required:true/false)@RenderBody()@Styles.Render(“~/Content/css”)@Scripts.Render("~/bundles/jquery")BundleConfig FileBundleTable.EnableOptimizations = true;
  11. 11. Note Calling a MVC Controller and Action Method using HTML Button or Image<input type="button" title="Delete" value="D"onclick="location.href=@Url.Action("Delete", "movies", new { id = item.ID })" /><a href="@Url.Action("Delete", "movies", new { id = item.ID })" title="Edit"><img src="../../Content/Images/Delete.png" /></a>
  12. 12. Demo API API Documentation CRUD
  13. 13. Thank You?

×