Ok. Googling fail probably and I remember reading about this a while back but can’t find it.
I have a View and a Partial View in different directories. In a view I say @Html.RenderPartial("[partial view name]"); how does RenderPartial figure out where to look? It must be a convention but what is it?
My view is in: WebRoot\Views\Admin\ folder and partial is at WebRoot\Views\Admin\Partials
Not sure if this the right set up.
I’m using MVC 3 (Razor engine)
you can, but you have to register the routes, to tell the view engine where to look for. example in Global.asax.cs you’ll have:
and the class is:
{0} is for all the subfolders with partials.