Chapter 8. Building forms with Tag Helpers

This chapter covers

  • Building forms easily with Tag Helpers
  • Generating URLs with the Anchor Tag Helper
  • Using Tag Helpers to add functionality to Razor

In chapter 7, you learned about Razor templates and how to use them to generate the views for your MVC application. By mixing HTML and C#, you can create dynamic applications that can display different data based on the request, the logged-in user, or any other data you can access.

Displaying dynamic data is an important aspect of many web applications, but it’s typically only one half of the story. As well as displaying data to the user, you often need the user to be able to submit data back to your application. You can use data to customize the view, ...

Get ASP.NET Core in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.