I currently having problems in closing a page opened using IE 6 sp 3 after Response.BinaryWrite. All other versions of IE it closes fine. This page was opened using window.open.
Below is a sample code of what i am trying to achieve:
protected void Page_Load(object sender, EventArgs e)
//Specify the document type.
Response.ContentType = "application/word";
//Specify how the document is sent to the browser.
Response.AddHeader("content-disposition", "attachment; filename=MyDasddsaocument.doc");
//Get data bytes from the file and send it to the response.
byte bytes = System.IO.File.ReadAllBytes(@"C:\\Temp\\in.doc");
Page.ClientScript.RegisterStartupScript(this.GetType(), "CloseMe", "window.close();", true);
I hope someone can help me with this issue.
Thank you in advance.
View Complete Post