I am having a web form initially which have href as follows
<a href="downloadInfo.aspx">ACH File Management System Trail(msi)</a>
<a href="downloadInfo.aspx">ACH File Management System Trail(zip)</a>
These are my two anchor tags when i click on this i will redirect both to a same page where user has to fill details and a mail will be send to the user for the given mail id. When the user clicks on mail i would like to have the download for which he opted to download. If msi means i would like to prompt msi file to be downloaded and if zip it should be downloaded
I need this to be worked with out using query-string
You’ll need JavaScript. First, on the choose page, add an id attribute to each
<a>whose value would tell you what file to download. Then use JavaScript (jQuery does this easily) to hijack the anchor tags:preventDefault() on an <a> tag
The hijack is an onclick event on each anchor tag that tells the client to not following the href. Instead it reads the anchor’s id and href values and either:
The receiving page reads the cookie or form field, respectively, to determine what file to serve for download.
Update