Question

Is 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

Was it helpful?

Solution

Unfortunately, the answer to this was no!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top