Page.Application Property
.NET Framework 3.0
Gets the HttpApplicationState object for the current Web request.
Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
// 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(); }
Community Additions
ADD
Show: