free e- mail
thaimail
hotmail
yahoo
siam2you
thammasat
Home
Visual Basic
Active Server Page
JavaScript
Network
Other
Active Server Pages.
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 2000 by Infinite Software Solutions, Inc.
Trademark Information
ASP - Link
ASP reference
B
C
D
E
F
G
Last update:
Copyright © 2001.Memo Wil@keo everything that I like Co.,Ltd.