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.
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
ASP.NET MVC Razor in Depth on Display and Editor Templates
1. THAILAND
DEVELOPMENT, ADVANCED
Suthep Sangvirotjanaphat
and http://GreatFriends.Biz Founder & Instructor
ASP.NET MVC
Razor
View Engine
in Depth on
Display and Editor
Templates
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. The Basic
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.
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. Editor() and EditorFor()
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.
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. Templates
Template
View
Output
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.
8. The Goal Setting
The 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. UI Design
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.
10. 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.
11. 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.
12. 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.
13. 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.
14. The Design
Solving 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. Initial Class Design
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.
16. 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.
17. 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.
18. 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.
19. 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.
20. Final Class Analysis
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.
21. Area of Polymorphism
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.
22. Demonstration
How 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. 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. 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.biz
http://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. 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’s
Microsoft Most Valuable Professionals (MVP)