Java script method is not firing when I am opening excel file through c# code
Hi,I have java script method to display a pop message. it is working proper in normal code.
In one scenario after displaying this pop up message I need to open an excel with c# code.
In this scenario my pop up (java script method not firing) is not coming.
I am using below code
Response.Clear();
Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name);
Response.AddHeader("Content-Length", file.Length.ToString());
Response.ContentType = "application/octet-stream";
Response.WriteFile(file.FullName);
Response.End();
Please help me on this.
thanks