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.
Loading...
Related Quiz
- In the hierarchy of configuration sources, which source has the highest precedence in determining the final value of a configuration setting in ASP.NET Core?
- When designing a Razor Layout in ASP.NET Core, which directive is used to render the main body content of child views?
- What is the primary distinction between Visual Studio and Visual Studio Code?
- To generate a drop-down list in a Razor form, the _______ tag helper can be utilized.
- For ensuring that the test runs in isolation, real services or components might be replaced with _________ during unit testing.