Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Views folder organization #2228


User avatar
0
dparizek created

Under Areas->Mpa->Views if I want a view served to URL /Mpa/Insurance I need to add a folder named "Insurance" and then put the Index.cshtml file in that folder.

I would like instead to have Areas->Mpa->Views->MyOrganizingFolder->Insurance->Index.cshtml.

If I do that what all should I change so the view will be correctly auto found?


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    I haven't tried this before but it seems like you can create Custom View Engines. You can take a look at this short article <a class="postlink" href="http://blog.thekfactor.info/posts/asp-net-mvc-custom-view-engines-using-the-razor-view-engine-as-the-base/">http://blog.thekfactor.info/posts/asp-n ... -the-base/</a>