concept EditorFor in category asp.net

appears as: EditorFor
ASP.NET MVC 2 in Action

This is an excerpt from Manning's book ASP.NET MVC 2 in Action.

But we may need more control over our HTML than what’s allowed or even desired in our model class through metadata information. For example, we might want to surround some of our elements with paragraph tags. For this level of individual control, where we want to lay out individual elements, we can use the EditorFor method, as shown in listing 3.15.

Listing 3.15. Using EditorFor for extra layout control
<p> <%= Html.EditorFor(m => m.OldPassword) %> </p> <p> <%= Html.EditorFor(m => m.NewPassword) %> </p> <p> <%= Html.EditorFor(m => m.ConfirmPassword) %> </p>