Hi All,
I'm using following statement to generate a excel file.
Response.ContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
Response.BinaryWrite(pck.GetAsByteArray());
System.Web.HttpContext.Current.ApplicationInstance.CompleteRequest();
phSummary.Visible = false;
Although this method can prevent the ThreadAbortException error, it still cannot invisible my PlaceHolder "phSummary". After showing the download dialog box, phSummary cannot be invisible.
With some checking, I found that the excel file generated from server containing the HTML code (the latest screen without showing phSummary). It seems the screen responses to the excel, not the client browser.
Is there any method to invisible the phsummary?
Go to the complete details ...