PDA

View Full Version : [CLOSED] [Razor] using partial views



machinableed
Apr 25, 2012, 9:31 AM
Hi there,

I'm having some trouble using partial views via the ContentFromPage or ItemsFromPage methods... Is it even possible to utilise razor style partial views? i.e. those that normally reside in /Shared/_xxxxx.cshtml? Or do you need to make these partial views into proper pages in their own right with MVC routes etc? I get "it does not exist or is not a valid page." errors each time I try to reference a partial view as panel content or something similar...

thanks

machinableed
Apr 25, 2012, 9:40 AM
Apologies - you can close this thread... adding /Views/ to the path seems to have fixed my problems