September 2016
Beginner to intermediate
186 pages
3h 28m
English
Tag Helpers are a new addition to ASP.NET MVC Core and can be used to generate HTML markup. The syntax of Tag Helpers is similar to traditional HTML elements, but is still processed on the server.
Although traditional HTML Helpers are still available, Tag Helpers are intended as an alternative, if not replacement, syntax.
To create your own custom Tag Helper that will generate a Bootstrap button, complete the following steps:
TagHelpers to your project.BootstrapButtonTagHelper in the TagHelpers folder.BootstrapButtonTagHelper to inherit from the TagHelper class, which is a built-in class of the Microsoft.AspNetCore.Razor.TagHelpers package.Read now
Unlock full access