Application Object
All Objects
All Collections
Session.StaticObjects
COLLECTION PROPERTY: Application.StaticObjects
Application.
StaticObjects
(Key)
The
StaticObjects
collection property is a collection that contains of all of the items created within the
Application
using the HTML <OBJECT> tag. You can use this collection to find the value of any property for any object.
You can iterate through a collection using a
For Each item in ... Next
loop.
There is one mandatory argument.
Key
The
Key
argument is the name of the item to be retrieved.
Code:
----------Global.asa-------------
<OBJECT RUNAT=Server SCOPE=Application ID=MyInfo PROGID="MSWC.MyInfo">
</OBJECT>
<OBJECT RUNAT=Server SCOPE=Application ID=MyConnection PROGID="ADODB.Connection">
</OBJECT>
<OBJECT RUNAT=Server SCOPE=Application ID=MyADRot PROGID="MSWC.ADRotator">
</OBJECT>
-----------File.asp-----------------
<%
For Each Item In
Application.StaticObjects
Response.Write Item & "<BR>"
Next
%>
Output:
MyInfo
MyConnection
MyADRot
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information