I have the following code
Response.TransmitFile(filePath);
Opens the new window using the following line of code
this.Page.ClientScript.RegisterStartupScript(this.GetType(), "Download", string.Format("window.open('{0}', target = 'new');", downloadURL), true);
This works on IE8 however doesn’t work on IE6 and IE7
anyidea what might be wrong here?
You’ll most likely get a script error
should render the javascript:
In the above script, the target variable is undefined. If you wanted the link to open in a new window, try:
Look here for a list of the available parameters to the window.open function