ASP.NET MVC | Introduction

Table of contents

premise

1. Tutorial

2. MVC programming mode

at last


premise

I have studied many courses, but the most important course is ASP.NET MVC, and I also use ASP.NET MVC for work, so I can write a little ASP.NET MVC, you can take a look, I don’t know You don’t need to look for other places when you read it, you can watch it right here. As the saying goes, it is convenient for you and me.

1. Tutorial

ASP.NET is a development framework for creating web pages and websites using HTML, CSS, JavaScript, and server scripting.

ASP.NET supports three different development models:
Web Pages (Web Pages), MVC (Model View Controller Model-View-Controller), Web Forms (Web Forms).

This tutorial introduces MVC .

2. MVC programming mode

MVC is one of three ASP.NET programming patterns.

MVC is a pattern for creating web applications using MVC (Model View Controller Model-View-Controller) design:

  • Model (Model) represents the core of the application (such as a list of database records).
  • View (view) displays data (database records).
  • The Controller handles the input (writes database records).

The MVC pattern also provides complete control over HTML, CSS, and JavaScript.


The MVC pattern defines a web application
with three logical layers:

Business layer (model logic)

Display layer (view logic)

Input Control (Controller Logic)

The Model is the part of the application that handles the logic of the application data.
Usually model objects are responsible for accessing data in the database.

View (view) is the part of the application that handles the display of data.
Usually views are created from model data.

Controller (controller) is the part of the application that handles user interaction.
Typically the controller is responsible for reading data from the view, controlling user input, and sending data to the model.

MVC layering helps manage complex applications because you can focus on one aspect at a time. For example, you can focus on view design without relying on business logic. It also makes testing the application easier.

MVC layering also simplifies group development. Different developers can develop views, controller logic, and business logic at the same time.

at last

This article mainly takes you to understand what ASP.NET MVC is used for, and then introduces the steps of ASP.NET MVC to create applications.

Guess you like

Origin blog.csdn.net/SFalS/article/details/129139851