When creating a custom Tag Helper, which class should it derive from?

  • TagHelper
  • Controller
  • RazorPage
  • Model
When creating a custom Tag Helper in ASP.NET Core, the class should derive from the built-in TagHelper class. This base class provides essential methods and properties for working with HTML elements and attributes within Razor Views, making it the foundation for creating custom Tag Helpers.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *