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

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -