Layouts, Tag Helpers, and Views in Razor
Everyone
- 26 videos | 1h 28m 18s
- Earns a Badge
ASP.NET Core MVC utilizes the Razor view engine to create view templates, and the new version provides exciting new features to create a better development experience. In this course, you will embark on an in-depth exploration of the Razor View Engine and the new features introduced in ASP.NET Core. You'll start by discovering the basics of Razor templating and utilizing layouts to provide a consistent look and feel for your application. Then you'll explore built-in and custom Tag Helpers to help componentize your templates. Finally, you'll learn about view components that improve upon existing features in Razor to provide components that can contain their own business logic. This course was originally created by Global Knowledge (GK).
WHAT YOU WILL LEARN
-
Describe the purpose of inline statements and code blocks and how to manipulate them in razorDiscuss how to add comments to razor templatesDescribe the viewbag and how it can be used to pass data from a controller to a viewDiscuss how to combine markup and code using code blocksDescribe how layouts can be used to provide a consistent look and feel for applicationsDiscuss the render body function and how to specify and provide content for layout sectionsDescribe how to specify a layout file for razor templatesDiscuss the purpose of _viewstart files and how they can be used to specify different layouts for different parts of an applicationDescribe how data can be passed between a view and its layout using the viewbag and viewdata propertiesDiscuss how to achieve layout inheritance by chaining layout filesDescribe how to specify strongly typed views using the model directiveDiscuss tag helpers and how they are used to generate html codeDescribe how to enable tag helper intellisense in visual studio 2017
-
Discuss how to use tag helpers to build html formsDescribe view dependency injection and how it can be used to inject types into views and call functions on the typesDiscuss how to use dependency injection to load lookup dataDiscuss bootstrap css and how custom tag helpers can be used to create reusable codeDescribe custom elements and attributes and how they're used when creating custom tag helpersDemonstrate how to create a basic tag helperDemonstrate how to create a custom element tag helperDescribe how to avoid naming conflicts by using a prefix on custom tag helpersDiscuss the limitations of using partial views to create reusable html for applicationsDescribe why view components are useful in overcoming the disadvantages of partial viewsDiscuss how view components can be invoked as tag helpersDescribe how to pass parameters into view componentsDiscuss how to create a view component and componentize an application
IN THIS COURSE
-
5m 11s
-
56s
-
1m 16s
-
10m 32s
-
57s
-
2m 52s
-
2m 2s
-
1m 31s
-
2m 3s
-
5m 59s
-
2m 15s
-
3m 57s
-
2m 8s
-
12m 36s
-
2m 56s
-
2m 42s
-
52s
-
3m 54s
-
6m 49s
-
5m 59s
-
47s
-
1m 4s
-
47s
-
1m 37s
-
1m 24s
-
5m 14s
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.
Digital badges are yours to keep, forever.