Redigera

Dela via


XhtmlMobileTextWriter.SessionKey Property

Definition

Gets the key used to retrieve items from the Session. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public:
 virtual property System::String ^ SessionKey { System::String ^ get(); };
public virtual string SessionKey { get; }
member this.SessionKey : string
Public Overridable ReadOnly Property SessionKey As String

Property Value

A string containing the key.

Exceptions

The SetSessionKey(HttpSessionState) method has not been called.

Remarks

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.

Applies to

See also