01.
Byte[] bytes2 = br.ReadBytes((Int32)fs2.Length);
02.
03.
br.Close();
04.
fs2.Close();
05.
06.
Response.Buffer =
true
;
07.
Response.Charset =
""
;
08.
Response.Cache.SetCacheability(HttpCacheability.NoCache);
09.
Response.ContentType = ContentType;
10.
Response.AddHeader(
"content-disposition"
,
"attachment;filename="
+ FileName);
11.
Response.BinaryWrite(bytes2);
12.
Response.Flush();
13.
HttpContext.Current.ApplicationInstance.CompleteRequest();