<%
 Application.lock     
 Application("aa")=123
 Application.unlock     
%>
运行完之后在其他任何asp中<%=Application("aa")%>
</慕白兄>

解决方案 »

  1.   

    APPLICATION中使用数组的方法,不同于一般的时候使用数组---file1.asp---
    <%
    'Creating and initializing the array
    dim MyArray()
    Redim MyArray(5)
    MyArray(0) = "hello"
    MyArray(1) = "some other string"'Storing the array in the Application object
    Application.Lock
    Application("StoredArray") = MyArray
    Application.UnlockResponse.Redirect("file2.asp")
    %>---file2.asp---
    <%
    'Retrieving the array from the Application Object
    'and modifying its second element
    LocalArray = Application("StoredArray")
    LocalArray(1) = " there"'printing out the string "hello there"
    Response.Write(LocalArray(0)&LocalArray(1))'Re-storing the array in the Application object
    'This overwrites the values in StoredArray with the new values
    Application.Lock
    Application("StoredArray") = LocalArray
    Application.Unlock
    %>
      

  2.   

    请问在JavaScript中使用又该如何用呢?
      

  3.   

    Application是无法在客户端使用的.