0
我有下面的代碼:在顯示下載彈出窗口之前在標籤中顯示消息?
lblInfoMessage.Text = "Successful";
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.BufferOutput = false;
HttpContext.Current.Response.ContentType = "application/zip";
HttpContext.Current.Response.AddHeader(
"content-disposition",
string.Format("attachment; filename={0}", zipFileName));
// code to generate a file
HttpContext.Current.Response.Flush();
HttpContext.Current.Response.End();
而這個頁面只顯示一個彈出下載我生成的文件,但我還需要在標籤lblInfoMessage所示的消息。