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吗?或者我完全错了吗?