System.Web.HttpResponse.ApplyAppPathModifier Method

Adds a session ID to the virtual path if the session is using System.Web.Configuration.SessionStateSection.Cookieless session state and returns the combined path. If System.Web.Configuration.SessionStateSection.Cookieless session state is not used, HttpResponse.ApplyAppPathModifier(string) returns the original virtual path.

Syntax

public string ApplyAppPathModifier (string virtualPath)

Parameters

virtualPath
The virtual path to a resource.

Returns

The virtualPath with the session ID inserted.

Remarks

HttpResponse.ApplyAppPathModifier(string) is used only with cookieless sessions to construct absolute HREFs.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0