I have button that opens a saveFileDialog to save a downloaded file to a clients PC.
After you save the file, or press cancel, the buttons on the web-part becomes unresponsive.
Why does this happen, and how can you fix it?
Code for webpart (I tried with javascript aswell, no success, still the same problem)
DataTable table = populateDataTable(selectQuery);
System.Web.HttpResponse response = System.Web.HttpContext.Current.Response;
response.ClearContent();
response.Clear();
response.ContentType = "text/plain";
response.AppendHeader("content-disposition", "attachment;filename=EthicsFeedExport " + DateTime.Now.ToString("yyyy-MM-dd") + "s.cv");
StringBuilder sb = new StringBuilder(); \\populate sb
response.Write(sb.ToString());
response.Flush();
response.End();