0
我在執行代碼序列後關閉ModalPopup時遇到了問題。 我正在爲我的公司編寫一個文件瀏覽器,除了下載文件外,一切正常。 我使用SignalR在下載文件前調用virusscan。 我的代碼看起來是這樣的:在ItemCommand ASP.Net中的某些代碼後關閉Ajax模式彈出
if (e.CommandName == "DownloadFile")
{
string filename = ((Button)e.Item.FindControl("bt_file")).Text;
if (transHub.doScanFile(filename, currentPathShort, shareType, MasterSessionID, SessionID, user))
{
Downloader.DownloadFile(HttpContext.Current, currentPath + @"\" + filename);
mpe_download.Hide();
}
else
{
lb_download_status.Text = "Virus found!";
mpe_download.Show();
}
}
下載本身工作正常,但在下載開始時我使用,以顯示在VirusScan過程中modalpopup不打烊。我打開客戶端JavaScript的彈出窗口:
$(".download").on("click", function() {
$find("mpe_download_bhvr").show();
$("#download-progress").progressbar({ value: false });
})
你能幫我關閉PopUp嗎?或者我完全錯了嗎?