All application variables (VB.net) : Application « Session Cookie « ASP.Net






All application variables (VB.net)

<%@ Page Language=VB Debug=true %>
<script runat=server>
Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs)
    Dim I as Integer
    lblMessage.Text = "All Application variables:<BR>"
    For I = 0 to Application.Count - 1
        lblMessage.Text = lblMessage.Text _
            & Application.GetKey(I) & ": " _
            & Application(I) & "<BR>"
    Next
End Sub
</SCRIPT>
<HTML>
<HEAD>
<TITLE>Application Variables</TITLE>
</HEAD>
<form runat="server">
<asp:label 
    id="lblMessage" 
    font-size="12pt"
    font-name="Tahoma"
    runat="server"
    text="Please provide your name."
/>
</form>
</BODY>
</HTML>
           
       








Related examples in the same category

1.Application state
2.Application.Count (VB.net)
3.Get variables from global.asax (VB.net)
4.Application.AllKeys (VB.net)
5.Add new name value pair to the Application (VB.net)
6.Give a Application a new value (VB.net)
7.Application.Count before and after variable setting (VB.net)
8.Application(I) (VB.net)
9.Application: GetKey (VB.net)
10.Application.RemoveAll() (VB.net)
11.Application.Item by index (VB.net)
12.Application.Item by kay (VB.net)
13. For Each Key in Application.Keys (VB.net)
14.Application.Lock() and unLock() (VB.net)
15.Application.StaticObjects (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)