Articles → ASP .NET MVC → Create Your First Asp.Net MVC Application
Create Your First Asp.Net MVC Application
- What programming approach do traditional asp.net applications follow?
- Why did MVC come into the picture?
- What are the benefits MVC is providing?
Why Asp.Net MVC?
- ASP.NET MVC provides a clean separation of concerns.
- ASP.NET MVC enables test driven development i.e. it is easy to write unit test cases.
- ASP.NET MVC does not support view state, so MVC application page size is lighter as compared to traditional web form application
- ASP.NET does not support post back events so ASP.NET MVC application is quicker in performance as compared to traditional web form application.
What Is MVC?
- Model – It describes the data as well as the business logic of the application.
- View – It displays the user interface of the application.
- Controller – It handles communication with the user and controls overall application flow.
Create Your First Asp.Net MVC Application
Click to Enlarge
Click to Enlarge
Click to Enlarge
Click to Enlarge
Folder Name | Description |
---|
App_Data | Stores data files like MDF. |
App_Start | Configuration code like routing, bundling etc. |
Content | CSS files |
Controllers | For storing controllers files. |
Filters | For putting filter code. |
Images | Store images used in the site |
Model | All model classes (classes where the business logic is written). |
Script | Stores script files. |
Views | All view files (user interface files) |