1 / 6

Tag Helpers

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

varuna
Download Presentation

Tag Helpers

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

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

More Related