After the code sequence is executed I am having trouble closing a model. I am coding a file brochure for my company and everything works fine except for downloading the file before I download the signal to open a virusscan. My code looks like this:
if (e.CommandName == "DownloadFile") {string filename = ((button) e.Item.FindControl ("bt_file")). Text; If (transHub.doScanFile (file name, current page shortcode, share type, master session, session ID, user)) {downloader. Download file (HTTP CONTEX. ON, Current path + @ "\" + file name); Mpe_download.Hide (); } And {lb_download_status.Text = "Virus Found!"; Mpe_download.Show (); }}
This download works fine, but when I started downloading modalpopup I am using Viruscan to show the process. I open popups from clientside javascript:
$ ("Download"). ("Click", function () {$ find ("mpe_download_bhvr") Show (); $ ("# download-progress"). Progressbar ({value: false});})
Can you stop the popup as soon as the download begins? Or am I doing it completely wrong?
I did not find any real solution for this, but I had a small solution. I am now invoking the download from Javascript and moved my webserver to my webserver from my userheets (on the server with files) and generated direct link. It is very safe and there is a possibility of downloading many files together, so now I am not using DownloadHandler and I can use a jQuery dialog popup to show notifications.
Comments
Post a Comment