Adhere to ASP.NET - (11)

xiaoxiao2021-03-06  58

3, Server object

Machinename

Scripttimeout

Htmlencode ()

Htmldecode ()

Mappath ()

Urlencode ()

Urldecode ()

4, status processing of ASP.NET

A, Application Status

Storage can be accessed by anyone. It is a centralized, storage variables within the site.

The Application object is a container that places the status variable we set for the application, which is a collection.

Every time you start, you will first run such a file Global.asax in the root directory. This file is often used to save the status code of the program.

Example: Global.asax