I have an asp.net mvc page (using C#) which contains a link containing a file name:
<a id="a1" href="#">File Name 1</a>
When this link is clicked, I'd like to pass the id of this file "a1" to the MVC Controller action using Ajax then the action should return back a file attachment (not accessible via file url but just a file attachment) so that the dialog with open/save button appears.
How to achieve this?