I understand that in Razor, @Html does a bunch of neat things, like generate HTML for links, inputs, etc.

But I don’t get the DisplayFor function…

Why would I write:

@Html.DisplayFor(model => model.Title)

when I could just write:

@Model.Title

4 Answers
4

Leave a Reply

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