Monday, March 2, 2009

Design Pattern

What are the folders for MVC patterns(ASP.NET project)?

Content: this folder is meant to include all the styles and images for the UI of the web application.
Controllers: this folder will contain all the classes for the controllers.
Models: the classes for the model will be located in this folder. In a simple ASP.NET application they could be a DataSet, a LINQ model or, in a more complex application, this could contain a wrapper to the Business Logic which could live in a separate assembly.
Views: separated in one folder per controller, here are all the Views (the aspx pages) that will be rendered back to the user.
Views\Shared: this last "standard" folder contains anything that pertains to the Views, but not specific to just one View (for example, Master Pages, shared controls and so on).

No comments: