Coll Staticobjects App π
2026-06-18 | π C#
# ASP StaticObjects Collection
* * Complete Application Object Reference Manual](#)
* * *
The StaticObjects collection contains all objects appended to the application/session using the HTML tag.
## Syntax
Application.StaticObjects(Key)
Session.StaticObjects(Key)
| Parameter | Description |
| --- | --- |
| key | Required. The name of the item to retrieve. |
* * *
## Examples for the Application Object
### Example 1
Loop through the StaticObjects collection:
<%
for each x in Application.StaticObjects
Response.Write(x & " ")
next
%>
### Example 2
In Global.asa:
In an ASP file:
<%
for each x in Application.StaticObjects
Response.Write(x & " ")
next
%>
Output:
MsgBoard
AdRot
* * *
## Examples for the Session Object:
### Example 1
Loop through the StaticObjects collection:
<%
for each x in Session.StaticObjects
Response.Write(x & " ")
next
%>
### Example 2
In Global.asa:
In an ASP file:
<%
for each x in Session.StaticObjects
Response.Write(x & " ")
next
%>
Output:
MsgBoard
AdRot
* * Complete Application Object Reference Manual](#)