Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 185473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T15:28:33+00:00 2026-05-11T15:28:33+00:00

I just finished Scott Gu’s Nerd Diner tutorial. I found it very helpful because

  • 0

I just finished Scott Gu’s Nerd Diner tutorial. I found it very helpful because it not only taught the basics of ASP.Net MVC, but also how to use with Repositories, Validation, Unit testing, Ajax, etc.. Very thourough, but still manageable.

However, I am curious about his site structure:

Specifically, he used this view strucuture for every object:
/ModelObject/Edit/
/ModelObject/Create/

Then extracted the common elements between the two views and put them into a partial.

I understand the logic, but it seems like it would lead to ‘view explosion’ if you have even a moderate number of tables in your database.

Scott’s really good, so I am assuming his structure is right. But I would like to know why.

Thanks!

[Edit for clarification]

I realize that many times it is necessary for there to be multiple actions (and views) to handle differences in creates and edits. It is the case of the very simple edit and create, where the only difference between the two actions is in one case the model has an ID and needs to be updated, and in the other case the model does not, so it needs to be inserted.

In this case, is the violation of the ‘Dumb View’ rule by using the same view to handle both cases going to cause major problems?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T15:28:34+00:00Added an answer on May 11, 2026 at 3:28 pm

    The view structure is based on the controllers, not the model directly. In the Mvc methodology, you should have a view for each action (each public method, essentially) in a controller. The controller actions don’t have to match up directly to each table in database but there is likely some sort of direct relationship between the number of tables in the database and the number of controllers and views. Controllers are higher level

    It is standard to have CRUD type actions on the controller, when they are applicable:

    • Index: list the items
    • Details: view a specific item
    • Edit: edit an item
    • Create: new item
    • Delete: delete an item

    Each of these actions will require a view (and sometimes more than one).

    So, yes, you can collect a large number of views if it is a large application. The way to minimize the code is:

    • Extract shared functionality to partial views, as to keep the action views as small and simple as possible
    • Keep the views and controllers simple so that they are easy to maintain
    • Use AJAX to implement more functionality in one view

    It’s important to point out that any large application is going to have lots of forms. Whether it’s Mvc or Web Forms, if there is a lot of data to work with, there are going to be a lot of forms necessary to do it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 117k
  • Answers 117k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Example (b) has a different meaning to example (a), and… May 11, 2026 at 10:42 pm
  • Editorial Team
    Editorial Team added an answer Looks like I got it to work myself. I added… May 11, 2026 at 10:42 pm
  • Editorial Team
    Editorial Team added an answer Your View should only be responsible for rendering data given… May 11, 2026 at 10:42 pm

Related Questions

I just finished Scott Gu's Nerd Diner tutorial. I found it very helpful because
I just finished a small project where changes were required to a pre-compiled, but
I just finished a medium sized web site and one thing I noticed about
I just finished a test as part of a job interview, and one question
I just finished a 2d platformer in C++/Allegro. Its still in an incomplete stage...

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.