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
Void Application_onstart () {
Application ["aspxnum"] = "asdfas";
}
script>
The lock and unlock of Application objects:
Application.lock ()
Application.unlock ()
B, session status:
Session can return HTTPSessionState objects with some of the following properties and methods:
Abandon ()
Clear ()
IsnewSession
TIMEOUT
The initial configuration of the Session status is also using the global.asax file:
Void Application_onstart () {
Session ["aspxnum"] = "asdfas";
}
script>
C, cookie