阅读背景:

如何使用Html.RenderPartial()将任意位数据传递给ASP.NET MVC中的用户控件?

来源:互联网 

I have a strongly typed user control ("partial") and I'd like to be able to pass it some additional information from its containing view. For example, I have view that's bound to a product class and i have a partial that also is strongly typed to that same model, but I also need to pass an additional parameter for imageSize to my partial. I'd like to be able to do something like this:I have a strongly typed user control ("partial"




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

分享到: