You can only return 1 stream of data, be it text (html) or binary (files).
You can't return 2 streams within a single request/response.
In my opinion, your best bet is to zip the 2+ files together using something
like SharpZipLib (free,
http://www.icsharpcode.net/OpenSource/SharpZipLib/)
and returning the zip.
Karl
--
http://www.openmymind.net/
"vivek" <vi***@discussions.microsoft.com> wrote in message
news:AB**********************************@microsof t.com...
Hi All,
I want to download two or more file to user machine.
Any one have idea.. How to download multiple file in user machine.
When I tried to download two file using below code.
I am not able to do...plz advise...............
Response.ContentType = "application/vnd.msword";
Response.AddHeader("content-disposition", "attachment;filename=" +
"Download_View.doc");
byte[] l_bytBinaryData;
string l_strBase64string = GetBase64String("C:\\Download_View.doc");
l_bytBinaryData = System.Convert.FromBase64String(l_strBase64string) ;
Response.BinaryWrite(l_bytBinaryData);
I used this two time, but this does not work and download one file.
Can anyone tell me.. how to proceed.