Hi,
I use RadUpload for uploading/downloading files. I use the below code for downloading files in a new aspx page (separate window).
//The following code writes the pdf file to the Client’s browser.
Response.ClearContent();
Response.ClearHeaders();
Response.ContentType =
"application/pdf";
Response.WriteFile(strURL);
Response.Flush();
Response.Close();
My files of type .pdf are downloading properly. But the contents are collapsed of file types .docx, .xlsx files,
i have used below code for it, but it doesnt work for the above mentioned file types
Response.ClearContent();
Response.ClearHeaders();
Response.ContentType =
"application/msword";
Response.WriteFile(strURL);
Response.Flush();
Response.Close();
and
Response.ClearContent();
Response.ClearHeaders();
Response.ContentType =
"application/xlsx";
Response.WriteFile(strURL);
Response.Flush();
Response.Close();
Please guide me.
Thanks,
Hema.