Download
tag helpers n.
Skip this Video
Loading SlideShow in 5 Seconds..
Tag Helpers PowerPoint Presentation
Download Presentation
Tag Helpers

Tag Helpers

329 Views Download Presentation
Download Presentation

Tag Helpers

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. #28# Tag Helpers Design by: TEDU Trainer: Bach Ngoc Toan Website: www.tedu.com.vn Facebook: fb.com/teduchannel Please likevideos and subscribe TEDU Channel to following the next video.

  2. Tag Helpers • Tag Helpers are new features in ASP.NET Core, which help us add the server side code easily into our HTML markup. • They look just like standard HTML code but it is processed by Razor engine on the server giving it all the advantageous of server-side rendering. • They manipulate the HTML elements on which they are operated or insert new HTML element, or replace the existing content with the new one.

  3. Using Tag Helper • Microsoft.AspNetCore.Mvc.TagHelpers • @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers • _ViewImports.cshtml • @removeTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers“ • @addTagHelper "Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper, Microsoft.AspNetCore.Mvc.TagHelpers“ • @tagHelperPrefix th:

  4. Example • <form asp-action="create" asp-controller="home"> • <form action="/home/create" method="post">

  5. Advantages of Tag Helpers • An HTML-friendly development experience • A Rich IntelliSense Help • Cleaner Code • Extensible

  6. List of Built-in Tag Helpers