GetDownloadFileURL
Use to return the URL for a file on the Web server.
Syntax
1 |
string <span>GetDownloadFileURL</span> (string <var>serverFile</var>, boolean <var>open</var>) |
Parameters
-
serverFile �
A string containing the name of the file on the application�s virtual file path on the Web server. -
open �
A boolean that determines whether to access the file in open mode or download mode. Values are:- true � show the file directly in a browser window (open mode).
- false � show a dialog box that lets the user open the file, save the file, or cancel the download operation (download mode).
Returns
String. Returns the URL of the file in ASCII format.
Examples
-
�
This code places the URL for a text file in a MultiLineEdit box and includes it as a hyperlink in a StaticHyperLink control:
123456#if defined PBWEBFORM thenstring ss = GetDownloadFileUrl("c:aaa.txt", false)mle_1.text += "~r~n" + sshl_1.url = s //shl_1: static hyperlink#end if
Usage
The open argument applies only if a Web Forms application user copies the returned URL in the current browser Address box or if you set a hyperlink in the current browser to the returned URL address.
Parent topic: System Functions for .NET Web Forms
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest