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.
Assembly: System.Web (in System.Web.dll)
'Declaration Public Function ApplyAppPathModifier ( _ virtualPath As String _ ) As String 'Usage Dim instance As HttpResponse Dim virtualPath As String Dim returnValue As String returnValue = instance.ApplyAppPathModifier(virtualPath)
Parameters
- virtualPath
- Type: System.String
The virtual path to a resource.
The following 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.
' Declare a string variable and set it to the result ' of a call to the ApplyAppPathModifier method. ' Then set the NavigateUrl property of a Hyperlink control ' to the string's value. Dim urlConverted As String = Response.ApplyAppPathModifier("TestPage.aspx") hlTest1.NavigateUrl = urlConverted
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.