web 2.0

ASP.NET(vb.net) Session.StaticObjects() - Session Object

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

ASP.NET(vb.net) Session.StaticObjects() - Session Object
.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.