ASP.NET(vb.net) Session.StaticObjects() - Session Object - Session.StaticObjects() : The StaticObjects collection contains all of the objects created by using the <OBJECT> tag within the scope of the session object.The collection can be used to determine the value of a specific property for an object, or to iterate through the collection and retrieve all properties for all objects.
ShotDev Focus:
- ASP.NET(vb.net) Session.StaticObjects() - Session Object
Example
Global.asax
<object runat="Server" scope="Session" id="proUpload" progid="aspSmartUpload.SmartUpload"></object> <object runat="Server" scope="Session" id="proZip" progid="Pnvzip.ZipFunctions"></object>
AspNetStaticObjects.aspx
<%@ Page Language="VB" %>
<script runat="server">
Sub Page_Load(sender As Object, e As EventArgs)
Response.write (Session.StaticObjects.Item("proUpload").ToString & "<br>")
Response.write (Session.StaticObjects.Item("proZip").ToString & "<br>")
End Sub
</script>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<form runat="server">
</form>
</body>
</html>
Screenshot

