ASP.NET MVC Razor in Depth on Display and Editor Templates

15,713 views
15,461 views

Published on

MVP Suthep Sangvirotjanaphat explains basic of ASP.NET MVC 4's Razor Html Helper on Display and Edit Templates. Then take a deeper demonstration in how we can achieve Polymorphism in ASP.NET MVC's Views. The result is we can have a simplified code that ready for changes and extensible in the future.

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

  • Be the first to like this

No Downloads
Views
Total views
15,713
On SlideShare
0
From Embeds
0
Number of Embeds
10
Actions
Shares
0
Downloads
96
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

ASP.NET MVC Razor in Depth on Display and Editor Templates

  1. 1. THAILAND DEVELOPMENT, ADVANCED Suthep Sangvirotjanaphat and http://GreatFriends.Biz Founder & InstructorASP.NET MVCRazorView Enginein Depth onDisplay and EditorTemplates
  2. 2. Agenda Razor supports for Displaying and Editing model. Demonstration How we do Polymorphism and Encapsulation in View Summary ASP.NET MVC Razor View Engine in Depth on Display and Editor Template// Microsoft MVP & Instructor at http://GreatFriends.Biz .NET Training Center Suthep S.
  3. 3. The BasicASP.NET MVC Razor View Engine in Depth on Display and EditorTemplate// Microsoft MVP & Instructor at http://GreatFriends.Biz .NET Training CenterSuthep S.
  4. 4. Display() and DisplayFor() ASP.NET MVC Razor View Engine in Depth on Display and Editor Template// Microsoft MVP & Instructor at http://GreatFriends.Biz .NET Training Center Suthep S.
  5. 5. Editor() and EditorFor()ASP.NET MVC Razor View Engine in Depth on Display and EditorTemplate// Microsoft MVP & Instructor at http://GreatFriends.Biz .NET Training CenterSuthep S.
  6. 6. DisplayForModel()and EditorForModel() ASP.NET MVC Razor View Engine in Depth on Display and Editor Template// Microsoft MVP & Instructor at http://GreatFriends.Biz .NET Training Center Suthep S.
  7. 7. Templates Template View OutputASP.NET MVC Razor View Engine in Depth on Display and EditorTemplate// Microsoft MVP & Instructor at http://GreatFriends.Biz .NET Training CenterSuthep S.
  8. 8. The Goal SettingThe Goal ASP.NET MVC Razor View Engine in Depth on Display and Editor Template// Microsoft MVP & Instructor at http://GreatFriends.Biz .NET Training Center Suthep S.
  9. 9. UI DesignASP.NET MVC Razor View Engine in Depth on Display and EditorTemplate// Microsoft MVP & Instructor at http://GreatFriends.Biz .NET Training CenterSuthep S.
  10. 10. ASP.NET MVC Razor View Engine in Depth on Display and EditorTemplate// Microsoft MVP & Instructor at http://GreatFriends.Biz .NET Training CenterSuthep S.
  11. 11. ASP.NET MVC Razor View Engine in Depth on Display and EditorTemplate// Microsoft MVP & Instructor at http://GreatFriends.Biz .NET Training CenterSuthep S.
  12. 12. ASP.NET MVC Razor View Engine in Depth on Display and EditorTemplate// Microsoft MVP & Instructor at http://GreatFriends.Biz .NET Training CenterSuthep S.
  13. 13. ASP.NET MVC Razor View Engine in Depth on Display and EditorTemplate// Microsoft MVP & Instructor at http://GreatFriends.Biz .NET Training CenterSuthep S.
  14. 14. The DesignSolving the problem. ASP.NET MVC Razor View Engine in Depth on Display and Editor Template// Microsoft MVP & Instructor at http://GreatFriends.Biz .NET Training Center Suthep S.
  15. 15. Initial Class DesignASP.NET MVC Razor View Engine in Depth on Display and EditorTemplate// Microsoft MVP & Instructor at http://GreatFriends.Biz .NET Training CenterSuthep S.
  16. 16. ASP.NET MVC Razor View Engine in Depth on Display and EditorTemplate// Microsoft MVP & Instructor at http://GreatFriends.Biz .NET Training CenterSuthep S.
  17. 17. ASP.NET MVC Razor View Engine in Depth on Display and EditorTemplate// Microsoft MVP & Instructor at http://GreatFriends.Biz .NET Training CenterSuthep S.
  18. 18. ASP.NET MVC Razor View Engine in Depth on Display and EditorTemplate// Microsoft MVP & Instructor at http://GreatFriends.Biz .NET Training CenterSuthep S.
  19. 19. ASP.NET MVC Razor View Engine in Depth on Display and EditorTemplate// Microsoft MVP & Instructor at http://GreatFriends.Biz .NET Training CenterSuthep S.
  20. 20. Final Class AnalysisASP.NET MVC Razor View Engine in Depth on Display and EditorTemplate// Microsoft MVP & Instructor at http://GreatFriends.Biz .NET Training CenterSuthep S.
  21. 21. Area of PolymorphismASP.NET MVC Razor View Engine in Depth on Display and EditorTemplate// Microsoft MVP & Instructor at http://GreatFriends.Biz .NET Training CenterSuthep S.
  22. 22. DemonstrationHow we do Polymorphism and Encapsulation in View ASP.NET MVC Razor View Engine in Depth on Display and Editor Template// Microsoft MVP & Instructor at http://GreatFriends.Biz .NET Training Center Suthep S.
  23. 23. SummaryWe can do polymorphism in ASP.NET MVC View.That’s mean, we can successfully separate what to show and how to show apart. (Yes, we call it encapsulation)Make our View adaptable and extensible possible. ASP.NET MVC Razor View Engine in Depth on Display and Editor Template// Microsoft MVP & Instructor at http://GreatFriends.Biz .NET Training Center Suthep S.
  24. 24. Download this slides and demo project at http://bit.ly/mvc-razor http://bit.ly/mvc-razor-demo Thank You Contact me at suthep@GreatFriends.biz http://facebook.com/suthep or join the community at http://www.GreatFriends.bizhttp://www.facebook.com/groups/greatfriends.biz/http://www.facebook.com/groups/MVCTHAIDEV/http://www.facebook.com/groups/html5dev/ Always welcome for questions or discussions about ASP.NET MVC and other .NET technologies ASP.NET MVC Razor View Engine in Depth on Display and Editor Template// Microsoft MVP & Instructor at http://GreatFriends.Biz .NET Training Center Suthep S.
  25. 25. We provide a quality public and in-house training courses for you and your team. Please visit us at http://greatfriends.biz More than 2,000 developers & SAs highly satisfy us.GreatFriends.Biz courses taught by Thailand’sMicrosoft Most Valuable Professionals (MVP)

×