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!
精彩评论