Application|web| Quick Start What is asp.net application?
Asp. NET so defined application: It is a virtual server running on the Web application servers
The sum of all files, pages, modules, and executable code under the directory and its subdirectories. Like what
Said, a application called "order" may be the Web server's one
A "/order" virtual directory. Virtual directories are available over the Internet
Services Manager settings, which can contain any subdirectories.
Every asp.net application on the Web server runs in a unique. NET Shipping
In a row time application domain, it guarantees class isolation (no translation or naming conflict), security
box (prevents access to a particular machine or network resource) and the isolation of static variables.
During the entire life of a Web application, ASP. NET maintains a
HttpApplication instance pool, automatically assigns one of these instances to handle the
Application each HTTP request received. The special HttpApplication is assigned
An example is responsible for managing a request for the entire life cycle, and it can be reused only when the request ends. This
Indicates that the user code in it is not required to re-enter.
Create Application
To create a asp.net application, we can use the existing virtual directory, or
Create a new virtual directory. For example, when Windows that contains IIS is installed
2000 Server, there will probably be a directory C:\InetPub\WWWRoot; we use
Internet Services Manager to configure IIS in the "Start
-> Programs-> Administrative Tools ", right-click the existing
directory, or select New to create a virtual directory, or select Properties couched
L A common directory exists as a virtual directory.
Now see how to trigger asp.net application. We can write a
Simple.aspx the file, place it under the virtual directory, and then access it in the browser. For
As a convenience, we list code written in VB, C #, and JScript three languages:
The code is simple, just print out the current time information in the browser. We can add some generations
Code to use the Application object, such as saving the object as a application range type.
By creating a Global.asax file, we can also define various event handlers, more than
such as Application_OnStart event triggers.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.