ASP.NET MVC 3 - Partial vs Display Template vs Editor Template
So, the title should speak for itself. To create re-usable components in ASP.NET MVC, we have 3 options (could be others i haven't mentioned): Partial View: @Html.Partial(Model.Foo, "SomePartial") Custom Editor Template: @Html.EditorFor(model => model.Foo) Custom Display Template: @Html.DisplayFor(model => model.Foo) In terms of the actual View/HTML, all three implementations are identical: @model WebApplications.Models.FooObject <!-- Bunch of HTML --> So, my question is - when/how do you decide which one of the three to use? What i'm really looking for is a list of questions to ask yourself