asp.net - Html.Partial vs Html.RenderPartial & Html.Action vs Html.RenderAction. can any one please describe the difference -


in asp.net mvc, difference between:

html.partial , html.renderpartial html.action , html.renderaction 

html.action invokes controller's action, means instantiates controller entity, calls action method, builds model returns view result.

html.partial uses created model (or can called without model @ all) render specified view.

when use 1 on other? if have model , want have reusable view, opt html.partial. if see piece deserves own model , action, maybe makes sense use html.action.

this question discussed in greater details in this article, , see above excerpt it.


Comments

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -