You're designing a form in your Razor view and want to leverage built-in tag helpers for form generation. Which directive should you ensure is present at the top of your view to use these tag helpers?

  • @addTagHelper
  • @model
  • @using
  • @inject
To use built-in tag helpers for form generation in an ASP.NET Core Razor view, you should ensure the presence of the @addTagHelper directive at the top of your view. This directive specifies which tag helpers should be available in the view and is typically configured in the _ViewImports.cshtml file for global usage.
Add your answer
Loading...

Leave a comment

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