开发者

Dynamically set the view base type for a partial view?

Is开发者_如何学C it possible to dynamically set the view base type for a partial view?

I'm doing a lot of dynamic page generation, using custom IViewFolder and IViewFile implementations, and need to set a specific base type for certain views...it's not a problem injecting the correct block, I just need to know what block to inject.

I've tried:

<use pageBaseType=”MyCustomViewType” /> 

at the top of the partial view, but it doesn't get picked up...is that the right syntax? Is it even possible...?

Thanks in advance,

Kieron


Unfortunately, the answer to this was no!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜