I am using IIS/asp.net and have a requirement to have two links side by side on the same page. They both link to the same exact file, but with two different behaviors, one should view the file and the other should download the file.
<a title="Specifications" href="/filename.pdf">
<img alt="View Icon" src="/images/viewIcon.jpg" />
</a>
<a title="Specifications" href="/filename.pdf">
<img alt="Download Icon" src="/images/downloadIcon.jpg" />
</a>
I have seen some tips here on SO about forcing one behavior or the other through MIME types, or via Content-Disposition: attachment
But is there anyway to have this arrangement where both live on the same page? I was hoping ideally to be able to add something to the link itself or to the href.
Thanks!