You're trying to create a basic form in a Razor view to capture user feedback. Which tag helper would you use to create a textbox for users to type in their comments?

  • asp-input
  • asp-textbox
  • asp-text
  • asp-form
To create a textbox for user input in a Razor view, you would use the asp-textbox tag helper. This helper generates the necessary HTML input element, and you can specify its attributes and bindings using the asp-for attribute. It's a handy tool for creating forms in ASP.NET Core views.
Add your answer
Loading...

Leave a comment

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