XhtmlMobileTextWriter.SessionKey Property

Gets the key used to retrieve items from the Session.

Namespace: System.Web.UI.MobileControls.Adapters.XhtmlAdapters
Assembly: System.Web.Mobile (in system.web.mobile.dll)

public:
virtual property String^ SessionKey {
	String^ get ();
}
/** @property */
public String get_SessionKey ()

public function get SessionKey () : String

Not applicable.

Property Value

A string containing the key.

Exception typeCondition

Exception

The SetSessionKey method has not been called.

Some devices do not allow inline styles in elements, but require style information to be provided from a linked style sheet. If the linked style sheet is stored in the Session, the URL contains a unique SessionKey that identifies the style sheet to return. For these target devices, the XhtmlMobileTextWriter moves style information from rendered controls to a style sheet for caching in the Session.

A page adapter can instruct the XhtmlMobileTextWriter to save the style sheet in the Session using SetSessionKey, or in the Cache using SetCacheKey before rendering the page.

This property is used primarily by developers of custom mobile page and control adapters.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: