MapVirtualPath

Description

Allows you to get the actual path of a file on the Web Forms server.

Syntax

string MapVirtualPath (string virtualPath)

Argument

Description

virtualPath

A string for a virtual path on the Web Forms server

Returns

String. Returns the actual path of a file in the virtual file system on a Web Forms server.

Usage

You can use the MapVirtualPath function to get the actual path of files for file operations required by .NET DLLs.

Examples

Example 1

The following code returns the actual path on a new line in a MultiLineEdit control:

#if defined PBWEBFORM then
	mle_1.text +=''~r~nActual Path='' &
     + MapVirtualPath(''c:\a.txt'')
#end if