MindMap Gallery Chapter 2 ASP.NET Overview
Chapter 2: Overview of ASP.NET, which covers .NET development, an introduction to the ASP.NET running environment, the development tool Visual Studio, the first ASP.NET program, etc.
Edited at 2023-11-14 21:35:41This is a mind map about bacteria, and its main contents include: overview, morphology, types, structure, reproduction, distribution, application, and expansion. The summary is comprehensive and meticulous, suitable as review materials.
This is a mind map about plant asexual reproduction, and its main contents include: concept, spore reproduction, vegetative reproduction, tissue culture, and buds. The summary is comprehensive and meticulous, suitable as review materials.
This is a mind map about the reproductive development of animals, and its main contents include: insects, frogs, birds, sexual reproduction, and asexual reproduction. The summary is comprehensive and meticulous, suitable as review materials.
This is a mind map about bacteria, and its main contents include: overview, morphology, types, structure, reproduction, distribution, application, and expansion. The summary is comprehensive and meticulous, suitable as review materials.
This is a mind map about plant asexual reproduction, and its main contents include: concept, spore reproduction, vegetative reproduction, tissue culture, and buds. The summary is comprehensive and meticulous, suitable as review materials.
This is a mind map about the reproductive development of animals, and its main contents include: insects, frogs, birds, sexual reproduction, and asexual reproduction. The summary is comprehensive and meticulous, suitable as review materials.
chapter 2 ASP.NET Overview
2.1 .NET development
ASP.NET technology is one of the components of the .NET framework. Before learning ASP.NET, you should first understand the .NET framework and the relationship between the .NET framework and ASP.NET.
2.1.1 Introduction to .NET Framework
.NET Framework is mainly divided into 4 parts: common language development environment, .NET basic class library, .NET development language and Visual Studio.NET integrated development environment.
2.1.2 Relationship between ASP.NET and .NET Framework
ASP.NET is an application model in the .NET framework and runs on a server with a .NET framework environment. ASP.NET can be written in a variety of languages and then compiled into bytecode files to run in the .NET framework.
2.1.3 Comparison of ASP, ASP.NET, JSP, and PHP
2.2 Introduction to ASP.NET running environment
If you want to run ASP.NET applications in the server, you need to build a .NET environment. This section will describe how to build an ASP.NET running environment in the server.
2.2.1 Requirements for software environment and operating system
ASP.NET usually runs on Windows operating systems, and other operating systems (such as Linux, Mac, etc.) are not supported by Microsoft. But there is already an open source version of the .NET framework that can run on non-Microsoft operating systems. The project is Mono, supported by Novell.
To run ASP.NET on the server, Internet Information Services (IIS) and .NET Framework must be installed. The IIS server program is included in the system CD and is not installed by default. .NET Framework can be downloaded for free from the official website.
2.2.2 Installation and configuration of application server
In Windows systems, the application server refers to Internet Information Services (IIS), and its components are already included in the system CD.
2.3 Development tool Visual Studio
2.3.1 Introduction to Visual Studio 2010
Visual Studio 2010 is a complete development toolset for building ASP.NET Web applications, XML Web Services, desktop applications, and mobile applications.
Visual Basic, Visual C, Visual C#, and Visual J# all use the same integrated development environment (IDE), which allows you to share tools and help create mixed-language solutions. Additionally, these languages leverage the capabilities of the .NET Framework, which provides access to key technologies that simplify the development of ASP Web applications and XML Web Services.
2.3.2 Using Visual Studio 2010
2.4 The first ASP.NET program
2.4.1 Build a Web project
There are usually two ways to create a web project or website: HTTP and file system. Creating a website using HTTP requires installing the IIS service; creating a website using the file system does not require installing the IIS service, because Visual Studio.NET 2010 itself comes with a service that can run ASP.NET programs. When the program is executed or debugged, this service will start automatically.
1. Create a Web website using HTTP
2. Create a Web website using the file system
2.4.2 Add code
After creating the website, start adding code
2.4.3 Analyzing code
In ASP.NET applications, by default, HTML pages and C# code are saved in two files separately. The HTML page is stored in a file with an .aspx extension, and the C# code is stored in a file with a .cs extension. Therefore, after creating a new Web page, two files will be automatically generated.
In the HelloWorld.aspx file, the top code is as follows:
%@ Page Language="C#" AutoEventWireup="true" CodeFile="HelloWorld.aspx.cs" Inherits="_Default" %>
The description of the code is as follows:
Language: The language used by the background code, here C# is used.
AutoEventWireup: Whether to automatically enable page events. The default is enabled.
CodeFile: The file name of the code-behind page associated with this HTML page.
Inherits: The class name of the background code, here is _Default.
2.4.4 Test code
Once you've finished adding the code, it's time to run and test the code for accuracy.
summary
This chapter provides a comprehensive and detailed introduction to ASP.NET and its relationship with the .NET framework. It also explains the installation and configuration of the development tool Visual Studio 2010. Finally, by creating a simple ASP.NET application, readers can more quickly master how to use development tools to create ASP.NET Web applications.