1

I am working on asp.net mvc project which is quite large in size. I am new to the MVC stuff.

As Asp.Net MVC have default folder structure Controller, Views or Model so can we change this structure. what if instead of Controller i have different folder? Is it possible?

1 Answer 1

3

Although it is possible to change the LocationFormats of a view engine, this isn't recommended as it messes with the standard MVC conventions.

Instead, you should consider using Areas for each of your major 'modules' of functionality.

Your folder structure will then be similar to:

/(MVC Root)
/Areas
   /Sales
      /Controllers
      /Views
   /Financials
      /Controllers
      /Views

etc.

Sign up to request clarification or add additional context in comments.

2 Comments

weblogs.asp.net/imranbaloch/archive/2011/06/27/… So it means i have to write my own view engine and pass controller to it?? Just asking for knowledge. Plan to go with Areas
Areas is the way to go in 99% of all the situations I can think of.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.