ASP application store FETCH traversal instance

Source: Internet
Author: User

Sub Application_OnStart
Application ("VI") = "Www.111cn.net"
Application ("UID") =2
End Sub
' The above code is to create the application variable

Response.Write (Application ("VI")) ' Output value www.111cn.net



' Above is the value of reading the application variable

The ' Traversal Contents collection Contents collection contains all the application variables. We can iterate through the contents collection to see where the stored

Dim i
Dim j
J=application.contents.count
For I=1 to J
Response.Write (Application.Contents (i) & "<br/>")
Next



' Traversal Contents set Contents Method II

Dim i
For all I in application.contents
Response.Write (I & "<br/>")
Next



' One of the most important things in the ASP application is the lock and unlock, which is used to do the online numbers.


Application.Lock
Application ("url") = "http://www.111cn.net";
Application.UnLock

' Annotated, this article original in www.111cn.net reprint to indicate the origin

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.