ASPxClientFileManagerFile.Download Method
Downloads a file from a file manager.
Declaration
Download(): void
Remarks
Use the Download method to download a file from a file manager. Before a download starts, the method invokes the ASPxClientFileManager.FileDownloading client event.
Example
The code below handles a button’s client Click event, to download a file selected within a file manager.
<dx:ASPxFileManager ID="MyASPxFileManager" runat="server" ClientInstanceName="myFileManager">
<Settings RootFolder="~\" ThumbnailFolder="~\Thumb\" />
</dx:ASPxFileManager>
<dx:ASPxButton ID="MyASPxButton" runat="server" Text="ASPxButton">
<ClientSideEvents Click="function(s, e) {
myFileManager.GetSelectedFile().Download();
}" />
</dx:ASPxButton>
See Also