ASP.NET                           MVC3Melick Rajee Baranasooriyahttp://melick-rajee.blogspot.com
Introduction   ASP.NET MVC 3 is a framework for building       Scalable        Standards-based web applications   usin...
Features   Rock Features       NuGet       Razor View Engine       HTML Helpers       Dependency Injection       Mod...
Features …   Improvements       Sessionless Controllers       ViewBag Property       JSON Model Binding       Granula...
Technology Stack   Web Platform Installer 3.0   Visual Studio 2010       Express       Web Developer Express   Visual...
How It works/Customer/Add                 CustomerController   Request       Controller                                   ...
Controllers   We are going to look       Routing       Controller Actions       Action Filters       Action Parameter...
Routing          http://localhost/Customer/Edit/5
Routing ..   Global.asmx
Routing ..   Accessing Routing Data       RouteData.Values["Controller"]       RouteData.Values["Action"]       RouteD...
Action Results   ContentResult             JsonResult   EmptyResult               RedirectToAction   FileResult      ...
Action Selectors   Decorate Control Actions       ActionName       AcceptVerbs           GET           POST         ...
Action Filters   Uses to restrict the action based on filer       [Authorize(Roles="Admin")]
   How Routing Works   Accessing Routing Data   Action Results   Action Selectors
Views   MVC 3 Supports       Aspx       Razor   Razor       Simple       Powerfull
Views ..   Strong Type View   Scaffold Template       Create       List       Details       Edit       ..   Partia...
Views ..   Razor Syntax @   Custom Helpers   Partial Views
Declarative Custom Helper
Models   Models       Data Annotations       Model Validation   JQuery
JQuery   jQuery is a fast and concise JavaScript Library that    simplifies HTML document traversing, event    handling, ...
Demo
Thank You.http://melick-rajee.blogspot.com
Upcoming SlideShare
Loading in...5
×

Mvc3 crash

3,217

Published on

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

  • Be the first to like this

No Downloads
Views
Total Views
3,217
On Slideshare
0
From Embeds
0
Number of Embeds
34
Actions
Shares
0
Downloads
47
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Mvc3 crash

  1. 1. ASP.NET MVC3Melick Rajee Baranasooriyahttp://melick-rajee.blogspot.com
  2. 2. Introduction ASP.NET MVC 3 is a framework for building  Scalable  Standards-based web applications using well-established design patterns and the power of ASP.NET and the .NET Framework.
  3. 3. Features Rock Features  NuGet  Razor View Engine  HTML Helpers  Dependency Injection  Model Validation
  4. 4. Features … Improvements  Sessionless Controllers  ViewBag Property  JSON Model Binding  Granular Input Validation  Partial Page Output Cache  Global Action Filters  New Action Result Types
  5. 5. Technology Stack Web Platform Installer 3.0 Visual Studio 2010  Express  Web Developer Express Visual Studio 2010 SP1  MVC 3 IIS Express [SQL Server 2008 R2 Express]
  6. 6. How It works/Customer/Add CustomerController Request Controller Model Model Model /Customer/Add Response View
  7. 7. Controllers We are going to look  Routing  Controller Actions  Action Filters  Action Parameters  Action Results
  8. 8. Routing http://localhost/Customer/Edit/5
  9. 9. Routing .. Global.asmx
  10. 10. Routing .. Accessing Routing Data  RouteData.Values["Controller"]  RouteData.Values["Action"]  RouteData.Values["Id"]);
  11. 11. Action Results ContentResult  JsonResult EmptyResult  RedirectToAction FileResult  RedirectResult HttpStatusCodeResult  RedirectToRouteResult HttpNotFoundResult  ViewResultBase JavaScriptResult  Many ..
  12. 12. Action Selectors Decorate Control Actions  ActionName  AcceptVerbs  GET  POST  DELETE  ..
  13. 13. Action Filters Uses to restrict the action based on filer  [Authorize(Roles="Admin")]
  14. 14.  How Routing Works Accessing Routing Data Action Results Action Selectors
  15. 15. Views MVC 3 Supports  Aspx  Razor Razor  Simple  Powerfull
  16. 16. Views .. Strong Type View Scaffold Template  Create  List  Details  Edit  .. Partial View
  17. 17. Views .. Razor Syntax @ Custom Helpers Partial Views
  18. 18. Declarative Custom Helper
  19. 19. Models Models  Data Annotations  Model Validation JQuery
  20. 20. JQuery jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript.
  21. 21. Demo
  22. 22. Thank You.http://melick-rajee.blogspot.com
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×