Page.Application Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the HttpApplicationState object for the current Web request.
public:
property System::Web::HttpApplicationState ^ Application { System::Web::HttpApplicationState ^ get(); };
[System.ComponentModel.Browsable(false)]
public System.Web.HttpApplicationState Application { get; }
[<System.ComponentModel.Browsable(false)>]
member this.Application : System.Web.HttpApplicationState
Public ReadOnly Property Application As HttpApplicationState
Property Value
The current data in the HttpApplicationState class.
- Attributes
Examples
// When this page is loaded, the source for the
// MyDataGrid control is obtained from Application state.
void Page_Load(object sender, EventArgs e ) {
DataView Source = (DataView)(Application["Source"]);
MySpan.Controls.Add(new LiteralControl(Source.Table.TableName));
MyDataGrid.DataSource = Source;
MyDataGrid.DataBind();
}
' 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
Applies to
See also
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.