Introduction
Popular Programming Languages and their MVC Frameworks -
- Java-Spring
- Ruby-Ruby on Rails
- JavaScript-AngularJs
- Php-Cake Php
- .Net-Asp.net Mvc
In MVC architectural patterns, application development is divided into three modules.
- Model
- View
- Controller

Models- Model is a set of classes, that is responsible for data and business-related logic. Model is used to communicate with the database and describes how the data can be changed and manipulated.
Views- View describes how the application user interface is displayed. In MVC, Views are created by using C# and HTML Views get the result from the Controller and display the data to the users.
Controllers- Controller is the most important component of MVC. Controllers handle the application execution logic, take input from Views, and send data to Models. A Controller controls the overall execution flow of an application.
Features of ASP.NET MVC
- Separation of concern (SoC)
SoC is a process of dividing application development into different modules. MVC is mainly divided into three components - Model, View, and Controller. It helps in the development process and increases the development speed. - Parallel Application development
Parallel development is a process of development of an application by multiple developers. In MVC, multiple developers can work on the same application module. - Test-Driven Development
In a test-driven development, a tester provides the guidelines to developers. MVC applications are easy to modify with the make-big changes. - Clean URL
MVC provides different routing techniques that do not depend on file systems but Controllers. These URLs are easy to perform SEO. - Performance Improvement
MVC uses only HTML controls and no server controls like ASP.NET Web Forms. Due to this, the performance is increased. MVC uses HTML controls for UI development, that makes it easy to add client-side scripting languages. - Improve functionality
In MVC, lots of new concepts like filers, routing etc. are added to make the application development faster and easier.
Folder structure of ASP.NET MVC application


App_Data
Content

Controller

Fonts

Models

Scripts

Views


Select 'MVC' in the Template section and click 'OK'. The project is created. Let us check the folder structure. The folders, such as content, script, app_start, View, Model, Controller etc. are created.


- public ActionResult Index()
- {
- return View();
- }

- ViewBag.msg = "Asp.net Mvc Part One";
- <h2>@ViewBag.msg </h2>
Now, run the project and check the results.

Join the conversation! Your thoughts help the community grow.