nimi
nimi

Reputation: 5507

Nested folder structure for views in ASP.NET MVC

How can i alter my views folder structure in MVC? I wanna use nested folder structure.

Views (Folder) - Content (Folder) - Admin (Folder) - Index.aspx

Controller - AdminController.cs

AdminController -> has an action Index which returns the view Index from Views->Content->Admin-Index.aspx

Is this possible and how can i do this?

Upvotes: 2

Views: 2728

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1038720

You may take a look at areas or write a custom view engine. Scott Hanselmann blogged about a mobile view engine but you could adapt it to your needs and folder structure.

Upvotes: 3

Related Questions