Partial views in asp.net mvc
We are having reusable partial views with separate model associated with it. while doing post back, the开发者_Go百科 partial view model is not getting populated and its returning null.
Example
ViewPage<ParentModel>
<%Htmlhelper.RenderPartial<controlname,ParentModel.ChildModel>
Please advice what am i doing wrong ?
Thanks Subu
Looks like you are not passing data to the partial view, so it has nothing to render as it does not know what to parse into view.
精彩评论