UserControl.Application Property

 

Gets the Application object for the current Web request.

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

[<BrowsableAttribute(false)>]
member Application : HttpApplicationState with get

Property Value

Type: System.Web.HttpApplicationState

The HttpApplicationState object for the current Web request.

The following example adds two key value pairs to the application state associated with a user control if the user control's IsPostBack property returns false. When this condition is met, the code uses the Add method, through the user control's Application property, to add the keys and their values.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: