Page.Application Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the HttpApplicationState object for the current Web request.

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

<BrowsableAttribute(False)>
Public ReadOnly Property Application As HttpApplicationState

Property Value

Type: System.Web.HttpApplicationState

The current data in the HttpApplicationState class.

' When this page is loaded, the source for the 
' MyDataGrid control is obtained from Application state.
Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)

    Dim Source As DataView = Application("Source")
    MySpan.Controls.Add(New LiteralControl(Source.Table.TableName))
    MyDataGrid.DataSource = Source
    MyDataGrid.DataBind()
End Sub

.NET Framework
Available since 1.1
Return to top
Show: