开发者

Dynamically set the view base type for a partial view?

开发者 https://www.devze.com 2023-01-07 10:40 出处:网络
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

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

精彩评论

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