How to show a download dialogue form?

A

ad

I use program to generate a zip file in the root directory of my
application.
How can I show a download dialogue windows on the client's browse to let
user download the zip file?
 
A

Andrea Zani

ad said:
I use program to generate a zip file in the root directory of my
application.
How can I show a download dialogue windows on the client's browse to
let user download the zip file?

Response.ContentType = "application/octet-stream"
Response.AppendHeader("Content-Disposition", "attachment;
filename=file.zip")
Response.WriteFile(...)
Response.End()
 
J

John Rivers

Response.ContentType = "application/zip"

is also possible and might make a difference to someone oneday
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top