UserControl.Session Property

 

Gets the HttpSessionState object for the current Web request.

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

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

Property Value

Type: System.Web.SessionState.HttpSessionState

An HttpSessionState object associated with the Page that contains the UserControl instance.

The following example adds values to the Session property of a user control. The myControl.Session.Add syntax inserts the values of two TextBox Web server controls to the session associated with the user control and the page that contains it.

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

.NET Framework
Available since 1.1
Return to top
Show: