The user and browser are ultimately in charge of what happens to the file on
the client side. You have very limited control from the server side unless
you run some thick client side code such as an ActiveX control.
One possible solution:
If you zip the file, it could not be opened directly.
Well the zip file could be opened directly, but it would be a separate step
if they wanted to open the file inside the zip file, which would already be
on their hard drive by that point.
Not sure if this might meet your requirements or not.
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"randmCP" <ra*****@discussions.microsoft.com> wrote in message
news:41**********************************@microsof t.com...
Hi and thanks in advanced for you help. I am working on a
file-distribution
asp.net application. Users click on a custom grid column to download files
stored on a SQL DB. The client does not want to open the file in the
browser,
so how can I either:
1. Display the Save Target as dialog box to download the a file when the
file is in memory using the WebFileResponse class.
2. or simulate the right click (Save Target) from a hyperlink to a
physical
file.
Thank you.