In some cases with SSL you can get error when download form browser stream file. This code works with SSL.
public static void WriteExcelFileToResponse(HttpResponse Response, byte[] fileContent, string fileName)
{
SetExcelHeaders(Response, fileName);
Response.BinaryWrite(fileContent);
Response.End();
}
public static void SetExcelHeaders(HttpResponse Response, string fileName)
{
Response.Clear();
Response.AddHeader("content-disposition", String.Format("attachment;filename={0}", fileName));
Response.ContentType = "application/vnd.ms-excel";
}
<!--googleAd-->
I hope it can help you to save few hours of your time.
you speeky very bad
yes it is, very secure. Going
but I think it's not good way
ewe
i love to try this
Sonia, this is very very old
Hi
I gone thru ur code and
thanks for including my
Thank You for the post!
broken link
Hey man, It saves me a lot of time
thx