title: Progress bar not hide after response.end
body: <p>I have functionality to download excel file in my project.
  On clicking export button porgress bar is displayed.but even if browser's save as dialouge is appeared progress bar get not invisible.
  Problem is after response.end progress bar not used.
  Progress bar visible at asp.net ajax begin request and invisible at end request .code shown below.</p>
  
  <p>Visible and hide progress bar:</p>
  
  <pre><code>Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(BeginRequestHandler);
          Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
          function BeginRequestHandler(sender, args) {
              //             alert('B');
              var elem = args.get_postBackElement();
              ActivateAlertDiv('visible', 'AlertDiv', elem.value + ' processing...');
          }
          function EndRequestHandler(sender, args) {
              ActivateAlertDiv('hidden', 'AlertDiv', '');
          }
          function ActivateAlertDiv(visstring, elem, msg) {
              var adiv = $get(elem);
              adiv.style.visibility = visstring;
              //                    adiv.innerHTML = msg;
          }
  </code></pre>
  
  <p>and file download on export click:</p>
  
  <pre><code>Response.Clear();
                      Response.ClearHeaders();
                      Response.ClearContent();
                      Response.AddHeader("content-disposition", "attachment; filename=" + OUTPUTFILE + ".xls");
                      Response.AddHeader("Content-Type", "application/Excel");
                      Response.ContentType = "application/ms-excel.xls";
                      Response.AddHeader("Content-Length", file_New.Length.ToString());
                      Response.WriteFile(file_New.FullName);
                      Response.Flush();
                      file_New.Delete();
  </code></pre>