1,request: can easily pass information from one page to another page, pass through URL, unsafe, small amount of data, can only be submitted by http-get
2,application object: () essentially a hash table) all clients accessing this application can see the value of the Application object, which is used primarily to store all users ' public information, and if the wood has a use program to force the release, The application object will exist throughout the lifetime of the application.
An ASP. NET application pool holds several (application) application instances, each one fetching an instance from the pool to process the request, and the instance will not accept other requests until the request is complete; If there are multiple requests to access application at the same time. Because there is a thread lock inside the Application object, methods such as the add,remove of the call itself automatically call the lock and unlock operation, in the performance consideration, For the process of getting objects and manipulating them directly through indexers or other means, application needs to be treated like code.
Application.Lock (); application["count"]= (int) application["count" ]+1; Application.UnLock ();
After the call to lock, if the wood has a display call unlock, the end of the request, the Application object will automatically unlock to prevent deadlocks, but the recommendation is to add the Unlock method
ASPX page state management (query string request and application)