Posted on: 6/30/2011 10:59:27 AM | Views : 323

Hi All,
after sending file i want to close that page. Actually that page is like a pop up. if i click a button it should transmitt the file and that particular page should be closed after succesful file transfer.
am using the following code, but its not working,
Response.ContentType = "Application/pdf"; Response.BinaryWrite(ms.ToArray()); Response.AppendHeader("Content-Disposition", "attachment; filename=invoiceSummary.pdf"); StringBuilder sb = new StringBuilder(); sb.Append("<script>"); sb.Append("window.close();"); sb.Append("</script>"); ScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), Guid.NewGuid().ToString(), sb.ToString(), false); Response.Flush(); Response.End();

needful help needed
Thanks,
Prasad
...

Go to the complete details ...