Category: tech tips

ASP.NET MVC 3 – Partial vs Display Template vs Editor Template 0

ASP.NET MVC 3 – Partial vs Display Template vs Editor Template

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...

RenderAction and RenderPartial Performance 0

RenderAction and RenderPartial Performance

Yes, there is a signficant difference in performance of RenderAction (slower) vs. RenderPartial (faster). RenderAction, by definition, has to run the whole ASP.NET pipeline to handle what appears to the system to be a...