Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So, I was playing around with MVC3. Correct me if I'm wrong but based on all examples I've seen, it is suggested that you pretty much have a page for every model and Action from the Controller. So for example create a pretty basic management portal for the aspnetdb database.






CreateUser.aspx or .cshtml
DeleteUser.aspx or .cshtml
ChangeUser.aspx or .cshtml
CreateRole.aspx or .cshtml
DeleteRole.aspx or .cshtml
UpdateRole.aspx or .cshtml
AssignUserToRole.aspx or .cshtml
AssignUsersToRole.aspx or .cshtml
AssignUserToRole.aspx or .cshtml
AssignUsersToRoles.aspx or .cshtml
DeleteUsersFromRole.aspx or .cshtml

share|improve this question
up vote 9 down vote accepted

It is close to the truth. Full and partial views do increase in numbers rapidly as you go.

This is however much more preferable to having one single God WebForms page that takes care of everything. With time it typically turns into a giant unmanageable blurb forcing you to reenginer the thing and likely to redo the entire work. You know, we've all been there.

Here you have an option to split your presentation layer into small manageable pieces. You can develop them separately, reuse them. You can even set the OutputCache per action which provides you with a great flexibility. I personally find it awesome.

In short: it is a good thing!

share|improve this answer
@Developer Art: I've been doing MVC3 as a training item lately, and slowly I've noticed the file bloat problem. Do you have any techniques or tools to help reduce page rot? – Joel Etherton Jun 1 '11 at 17:39
There are areas which you can take advantage of to logically separate different modules. I personally just structure things in subfolders which works fine for me. – user8685 Jun 1 '11 at 17:44
@Developer Art: Pat your brain for me. – MVCylon Jun 1 '11 at 18:29
Personally, I prefer file bloat to code bloat (amount of code in a single file). I find a hierarchical folder structure very easy to navigate. One technique I use to manage the large number of files is organizing folders by the logical area they are concerned with (users, billing, subscriptions, etc.) with subfolders for different types of classes (controllers, models, views, etc), and not the other way around (which seems more common). – quentin-starin Jun 1 '11 at 18:32
@qes: That's exactly how areas work. – user8685 Jun 1 '11 at 18:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.