Application.StaticObjects (VB.net) : Application « Session Cookie « ASP.Net






Application.StaticObjects (VB.net)

<%@ Page Language="vb" %>
<html>
   <head>
      <script runat="server">
         Sub Page_Load()
     Message.Text = "There are " & Application.StaticObjects.Count & _
        " objects declared with the " & _
        "&lt;object runat=&quot;server&quot;&gt; syntax in Application scope."
     Dim myobj As Object
     For Each myObj in Application.StaticObjects
        If myObj.Value.GetType.ToString() = _
           "System.Web.UI.WebControls.TextBox" Then
           Page.Controls.Add(myObj.Value)
        End If
     Next
         End Sub
      </script>
   </head>
<body>
   <asp:label id="Message" runat="server"/>
</body>
</html>

           
       








Related examples in the same category

1.Application state
2.Application.Count (VB.net)
3.All application variables (VB.net)
4.Get variables from global.asax (VB.net)
5.Application.AllKeys (VB.net)
6.Add new name value pair to the Application (VB.net)
7.Give a Application a new value (VB.net)
8.Application.Count before and after variable setting (VB.net)
9.Application(I) (VB.net)
10.Application: GetKey (VB.net)
11.Application.RemoveAll() (VB.net)
12.Application.Item by index (VB.net)
13.Application.Item by kay (VB.net)
14. For Each Key in Application.Keys (VB.net)
15.Application.Lock() and unLock() (VB.net)
16.Application Set (VB.net)
17.Application.Remove (VB.net)
18.Application Remove At (VB.net)
19.Application.Clear() (VB.net)
20.Application property example (VB.net)
21.Store key value pair for entire application (C#)
22.Set Application key value pair (VB.net)