CoderZone.org

Category: >> ASP/VB Code >> Get all application variables Bookmark and Share

<< lastnext >>

Snippet Name: Get all application variables

Description: How to get all application variables in VB.net.

Comment: (none)

Author:
Language: VB
Highlight Mode: VBNET
Last Modified: December 03rd, 2010

<%@ 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 = "Get 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="12px"
    font-name="arial"
    runat="server"
    text="Please provide your name."
/>
</form>
</BODY>
</HTML>
 
There haven't been any comments added for this snippet yet. You may add one if you like.  Add a comment 
© coderzone.org | users online: 11