Logo Head Picture  free e- mail 
 thaimail 
 hotmail 
 yahoo 
 siam2you 
 thammasat
 Home  Visual Basic Active Server Page  JavaScript   Network   Other 
 Active Server Pages.











COLLECTION PROPERTY:  Session.StaticObjects

Session.StaticObjects(Key)

The StaticObjects collection property contains a list of all of the items that have been created and added to the Session object using the HTML <OBJECT> tag.

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 retrieve.

Code:
----------Global.asa-------------
<OBJECT RUNAT=Server SCOPE=Session ID=MyInfo PROGID="MSWC.MyInfo">
</OBJECT>
 
<OBJECT RUNAT=Server SCOPE=Session ID=MyConnection PROGID="ADODB.Connection">
</OBJECT>
 
<OBJECT RUNAT=Server SCOPE=Session ID=MyADRot PROGID="MSWC.ADRotator">
</OBJECT>
 
-----------File.asp-----------------
<%
For Each Item In Session.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.