Author: fasihakbar590 | Posted on: 10/28/2010 6:57:46 AM | Views : 246

Dear All,
I am not sure that I should post this problem here or not.
I am opening a SaveAs Dialog by this code:-Response.ContentType = "image/jpeg"; Response.AppendHeader("Content-Disposition", "attachment; filename=" + objPersAttachmentsData.File_name); Response.TransmitFile(Server.MapPath("~/temp/" + objPersAttachmentsData.File_name)); Response.End();
Open/Save file dialog opens by the above code. But when I try to save any image file (JPG,GIF etc), file is currepting and saving as unknown format on the mentioned path.
Any help?
I shall be very thankful to u.
Regards,
Fasih







...

Go to the complete details ...