At first glance, Visual Studio generates an ASP.NET web
application project for you with a simple structure.
Figure 3: ASP.NET MVC solution structure
Taking a look at this project, you believe that there are
some references for the project and one important reference is to
System.Web.Extensions assembly. There are also four folders available including
Content, Controllers, Models and Views.
·
Content folder is just for a default CSS stylesheet file for default
look and feel of the site.
·
Controllers folder is responsible to hold controller classes.
·
Models folder is responsible to hold model classes.
·
Views folder is responsible for holding view files and contains
some folders that include ASPX and master files.
As you see, Controllers, Models and Views are more important
for us here. While they are generated to hold controllers, models and views,
this is not a rule and you can replace them with your own structure.
Beside these folders, there are some well-known ASP.NET
files that of course have some extra definitions that I will describe later.
There is a point to mention here about Default.aspx file and
as mentioned in the content of this file, you should not remove the file to let
IIS activate MVC for the application when the user navigates to this page.
That is enough for now. Step-by-step, I am going to add my
implementation to this project in the upcoming posts.