sbornstein2
asked on
ASP.Net/VB.Net - How to prompt download of a file in physical path on server?
I have zip files stored in a path that is in a physical path referenced in my web config. I can't use a virtual directory because we will be on a web farm. They are zip files that I will have the name in a datagrid which I want to be a linkbutton that can prompt the download of the file for the client machine. Any idea how I can do that.
Create a generic HttpHandler and open the file for read within that and write it to the response stream. Your link button would then point to something ilke "MyHttpHandler.ashx?FileID =123".
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
this is perfect