ASP.NET MVC
Architecture
- Internet Information Services
- IIS is Microsoft's web server for their Windows operating system.
- ASP.NET Server
- This is a handler for ASP requests, which integrates into the IIS pipeline.
- MVC Routing
- The MVC framework intercepts incoming requests, and uses configurable routing to select the appropriate controller.
- Model
- A .NET representing a business object, with methods for the business logic.
Database persistence is also managed by this class.
- View
- A variety of templating engines can be used, including Web forms.
- Controller
- A class which maintains the model, processes client requests, and despatches the correct view.
State
The model is responsible for persisting itself, and the controller uses the model's methods to persist or retrieve data.
Additionally, the ASP.NET's standard session store is available.
Source Files
- Controllers/AppController.cs
- This is the controller for the App directory. By default, all requests of type /App/A will be handled by AppController.A.
- Models/Name.cs
- The model; a simple C# class.
- Views/A.aspx and A.aspx.cs
- The markup and code-behind for page A.
- Views/B.aspx and B.aspx.cs
- The markup and code-behind for page B.
- Views/C.aspx and C.aspx.cs
- The markup and code-behind for page C.
Deployment
ASP.NET MVC sites are deployed in the same manner as regular ASP.NET.
Tools
ASP.NET MVC includes full Visual Studio support.