How can I create a download link for my existing Excel file?
<a href='/path/to/excel/file.xls' download="file.xls">Download </a>
I tried this and it did not allow me to download the file. Do I need to copy my Excel file to Visual Studio?
How can I create a download link for my existing Excel file?
<a href='/path/to/excel/file.xls' download="file.xls">Download </a>
I tried this and it did not allow me to download the file. Do I need to copy my Excel file to Visual Studio?
If it doesn't work as a link, you can also try it as a button :
<form>
<input type="button" value="Download" onClick="window.location.href='/path/to/excel/file.xls'">
</form>