I want my users to be retrieve a small executable file from my web page. I want the page to say something like "click here to download myapp.exe".
In .asp, how do I say "when the user clicks this hyperlink, push the .exe out to them"?
1. in the asp file where you have the link:
<a href="myapp.exe">click here to download</a>
when user clicks on the link, the browser will download that file and let user chooses between "Save", "Open", "Cancel".
2. <a href="pushtouser.asp">click here to download</a>
when users click on the link, pushtouser.asp will open the file, read the content, collect other information (size, name ...) then Response.BinaryWrite(content) to the browser.
Yeah, I figured it out myself about three minutes after posting this thread. You can even do it using FrontPage, so its really kids stuff. It surprises me that its so easy.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.