Allows you to get the actual path of a file on the Web Forms server.
string MapVirtualPath (string virtualPath)
Argument |
Description |
---|---|
virtualPath |
A string for a virtual path on the Web Forms server |
String. Returns the actual path of a file in the virtual file system on a Web Forms server.
You can use the MapVirtualPath function to get the actual path of files for file operations required by .NET DLLs.
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