Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get SaveAs dialog

Status
Not open for further replies.

tshad

Programmer
Jul 15, 2004
386
0
0
US
I am trying to save a file from my website to the users local disk. I want to bring up a SaveAs dialog box to tell me where to write the file.

Can we do that?

We have a couple of buttons in our grid that tells us what files to download. So I don't want to use the FileUpload control as I already have the name and you can't write the name to the control (read only).

Thanks,

Tom
 

Add this to the output method:

Code:
response.AddHeader("Content-Type", "application/octet-stream")


Mark

"You guys pair up in groups of three, then line up in a circle."
- Bill Peterson, a Florida State football coach
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top