views:

26

answers:

1

Hi,

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

A: 

Unfortunately, the answer to this was no!

Kieron