Understanding ASP.NET

What is ASP.NET?

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

ASP.NET supports three different development modes:

Web Pages (Web pages), MVC (Model View Controller model-view-controller), Web Forms (Web forms).

  • Web Pages Single Page Mode
    The simplest ASP.NET mode.
    Similar to PHP and classic ASP.
    Built-in templates and helpers such as databases, videos, graphics, and social media.
  • MVC Model-View-Controller
    MVC divides a web application into three different components: the
    model is responsible for data, the
    view is responsible for display, and the
    controller is responsible for input.
  • Web Forms event-driven model The
    traditional ASP.NET event-driven development model:
    Web pages with server controls, server events, and server code.

How to run ASP on my PC?

Use your own Windows PC as a web server

  • If you have IIS or PWS installed, you can configure your PC as a web server.

  • IIS or PWS can turn your computer into a Web server.

  • Microsoft IIS and PWS are free web server components.

IIS-Internet Information Server (Internet Information Service)
IIS is a collection of Internet-based services developed by Microsoft and used on the Microsoft Windows platform.
Windows 2000, XP, Vista and Windows 7 all provide IIS. Windows NT is also available for IIS.
IIS is easy to install and is an ideal tool for developing and testing web applications.
How to install IIS on Windows 7 and Windows Vista
Please install IIS according to the following steps:
Open the control panel from the start menu
Double-click "Programs and Features"
Click "Turn Windows features on or off"
Select "Internet Information Services (IIS)" Check box, and then click OK.
After you install IIS, please make sure to install all patch packages (run Windows update).
Test your installation
After you have installed IIS or PWS, follow the steps below to test whether the installation was successful:

Find the folder named Inetpub on your hard drive
Open the Inetpub folder and find the folder named wwwroot
Create a new folder under wwwroot, such as "MyWeb"
Use a text editor to write a few lines of ASP code, copy this file Name it "test1.asp" and save it in the "MyWeb" folder to
ensure that your Web server is running, use the following method to confirm its running status: enter the control panel, then the management tool, and then double-click "IIS Manager" icon.
Open your browser, type "http: //localhost/MyWeb/test1.asp" in the address bar, you can see your first ASP page.
Note: Look for the IIS (or PWS) symbol in your start menu or task bar. The program provides starting and stopping the Web server, enabling and disabling ASP, and many other functions.

Published 19 original articles · praised 19 · visits 1583

Guess you like

Origin blog.csdn.net/weixin_45558363/article/details/105562415