ASP Empty Application Method _ Application Tips

Source: Internet
Author: User
Do the website, if use a large number of application will occupy a lot of server resources, so we quit the background can, empty the data, the site will run faster
The Application object implements the sharing of information among all users of a given application and holds the data persisted during the server's run. Also, the Application object has control over how the application-tier data is accessed and the events that can be used to trigger the process when the application starts and stops.

Although the Application object has no built-in properties, we can use the following syntax to set a user-defined property, also known as a collection.

Application ("Attribute/collection name") = value

The following code shows how to create and empty application
Establish application Assignment: <%application ("AA") = "LHP"%><br/>
Print Application value: <%=application ("AA")%> <br/>
Implement the code for emptying the Application object with ASP:
Copy Code code as follows:

<%
' Application.contents.removeall
' Application. Contents.Remove ("Variable name")
Application. Contents.Remove ("AA")
%>
<br/>
Print Application value: <%=application ("AA")%>
Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.