Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

RegisterClientScript for window.open Not Working in Firefox

$
0
0

I have the following line used to download a file after the user clicks an export button.  I need the code to work in IE8 and Firefox 20+.  The following works great in IE8 but not Firefox.  Ideas?

ClientScript.RegisterClientScriptBlock(GetType(String), "download", "window.open('" & MyWriter.PostedFile & "','download');", True)

The PostedFile value is in the format file://networkdrive/filename.xlsx
 


Viewing all articles
Browse latest Browse all 5678

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>