I want to download a zip (c:\test\mine.zip) in the server to client.
I modified the code form
http://support.microsoft.com/default...;EN-US;q306654
and write it to a click event of a button:
string sFileName = @"c:\test\mine.zip";
//Response.ContentType = "Application/zip";
Response.WriteFile(sFileName);
Response.End();
I have two question:
1.
When use click the button, the default file name is not Mine.zip but
test.zip.
How can I set the file name to mine.zip?
2.
What ContentType should I set?