阅读背景:

将附加的视图数据传递给强类型的部分视图

来源:互联网 

I have a strongly-typed Partial View that takes a ProductImage and when it is rendered I would also like to provide it with some additional ViewData which I create dynamically in the containing page. How can I pass both my strongly typed object and my custom ViewData to the partial view with the RenderPartial call?I have a strongly-typed Partial View that takes




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: