© John Ciliberti 2017

John Ciliberti, ASP.NET Core Recipes, https://doi.org/10.1007/978-1-4842-0427-6_3

3. MVC Razor Syntax and HTML Helpers

John Ciliberti

(1)Sparta, New Jersey, USA

The recipes in this chapter focus on fundamental programming constructs that you will use often when creating views using Razor. As an ASP.NET Core MVC developer, you will likely spend a significant amount of time creating views. Mastering basic Razor syntax and HTML Helpers is essential to becoming productive on the ASP.NET Core MVC platform. Recipe 3-1 is a Razor program that includes a bonus quick-reference guide when you run the sample web application associated with the recipe.

This chapter also includes a set of recipes dedicated to using the ActionLink HTML Helper. ...

Get ASP.NET Core Recipes: A Problem-Solution Approach 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.