I have a hyperlink that I added to my ASP.NET web form. Here is the code:
<asp:HyperLink ID="lnkDownloadG2" Visible="false" runat="server" NavigateUrl="~/Savefile/input_overwriteG2.txt" Target="_blank">Download</asp:HyperLink>
When I click on the hyperlink I want the file to download to downloads folder (or whatever folder is specified in browser settings). Instead it is opening in a new tab. How can I force the file to download instead of opening up in a new browser tab?