. NET is divided into two main categories
I. Client application c/s
Technology:
Winform
Wpf
MFC MVVM
Second, external side application B/S (Web-side application/web End-/web application)
The current learning technique is the ASP.
Formerly the ASP
Branch: WebForm
Mvc
Then suppose someone asks you would you be ASP.
You have to ask, which direction are you talking about?
WebForm or MVC?
Client run mechanism:
Client services on the user's computer Database on the device
Service side
Client → send request connection → open server database SQL Server connection database ip→ Execute SQL statement → return data → client processing → data viewed by client users
The server is a program running on the servers
Role: For example, send an announcement, each user, have to send a request, connect, and give each user feedback back to the server may be a bit of lag or trouble
The service side is to accept an announcement on the client that feeds the announcement to each user
External terminal operating mechanism:
Three kinds:
First, static page
Enter the URL via the browser → send request → which page to visit → Server →iis→ feedback html+css+js→ browser to show users see
Second, dynamic page with C # code
browser → send request → which page to access → server →iis(see with C # code) →.net Framework (processing C # to framework framework ) →iis (html+css+js+ feedback) → Browser
Iii. dynamic pages with C # code and access to the database
browser → send request → which page to access → server →iis (see with C # code) →.net Framework (processing C # to framework framework)→ Access database → Execute SQL statement →.net Framework →iis (Results of html+css+js+ feedback) → Browser
Operating mechanism:
C
The code executes on the client and accesses the data only to the database on the server.
b/S
The program code executes on the server, the client only renders HTML+CSS, executes the JS code, and all other functions are executed on the server.
The client browser sends the request
| |
IIS on the server (Internet Information Services Manager)
| | (HTML+CSS+JS)
. NET framwork on the server for Code processing
| |
Databases on the server
Why the web is becoming more and more popular
1, do not eat the user's computer Configuration
2, no need to install, anytime and anywhere access to the Web
3, cross-platform (user mobile phone, computer browser can be used in JAVA PHP. NET-made Web pages can be seen)
One, HTML static page suffix name. html. htm
Second, dynamic page with C # code page suffix name. asp. aspx
Third, the dynamic page suffix name with C # code and need to access the database. ASP. aspx
The Java web page suffix name. jsp
PHP does the page suffix name. php
Native Access native IP is 127.0.0.1 or localhost
View public IP
Start Menu →cmd→ipconfig→ipv4 The IP address that is for public viewing
The first day of web-based understanding