Page.Application プロパティ
アセンブリ: System.Web (system.web.dll 内)
構文
Public ReadOnly Property Application As HttpApplicationState
public HttpApplicationState Application { get; }
HttpApplicationState クラス内の現在のデータ。
' 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
// 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(); }
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
- Page.Application プロパティのページへのリンク