HttpResponse.ApplyAppPathModifier Method

Adds a session ID to the virtual path if the session is using Cookieless session state and returns the combined path. If Cookieless session state is not used, ApplyAppPathModifier returns the original virtual path.

Namespace: System.Web
Assembly: System.Web (in system.web.dll)

public:
String^ ApplyAppPathModifier (
	String^ virtualPath
)
public String ApplyAppPathModifier (
	String virtualPath
)
public function ApplyAppPathModifier (
	virtualPath : String
) : String
Not applicable.

Parameters

virtualPath

The virtual path to a resource.

Return Value

The virtualPath with the session ID inserted.

ApplyAppPathModifier is used only with cookieless sessions to construct absolute HREFs.

The following code example declares a string variable, named urlConverted, and sets it to the result of an ApplyAppPathModifier method call. The code then passes the variable's value to a HyperLink control's NavigateUrl property.

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

Windows 98, Windows Server 2000 SP4, 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, 1.1, 1.0

Community Additions

ADD
Show: