Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

ASP Application.StaticObjects Collection

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

The Application.StaticObjects Collection in ASP is used to store all the objects created by using the <object> tag within the scope of the Application object.  

Syntax

Application.StaticObjects( Key )  

Parameter Values  

  • Key: It is a required parameter. It specifies the name of the property of an object that would be retrieved.

Example: 

HTML




<object runat="server" 
        scope="session"
        id="MsgBoard" 
        progid="msgboard.MsgBoard">
</object>
  
<object runat="server" 
        scope="session"
        id="AdRot" 
        progid="MSWC.AdRotator">
</object>

ASP code: Below code uses an iterating control structure to loop through the keys of the StaticObjects Collection.

ASP




<%
for each x in Session.StaticObjects
Response.Write(x & "<br>")
next
%>

Output:

MsgBoard
AdRot
My Personal Notes arrow_drop_up
Last Updated : 01 Feb, 2021
Like Article
Save Article
Similar Reads
Related Tutorials