I have a link in a view:
<a href="@ViewBag.ReportHelpLink" target="_blank">@ViewBag.ReportHelpText</a>
where @ViewBag.ReportHelpLink
results in a link to an Excel document. Such as
http://www.website.com/SomeDocument.xls
Notice, there is a target="_blank"
specified. I added this a while ago to make sure that IE doesn't change the current page to blank when the user clicks this link. However, when done this way, IE opens up a new blank window and a download box for the file on top of it.
Is there a way to pop up the download box in IE without that extra blank window or without the current page changing to blank?
As always, other browsers are just fine. It's only IE that wants to open up a blank page one way or the other.