I am using this below code
Response.ContentType = "image/jpeg";
Response.AppendHeader("Content-Disposition", "attachment; filename=Image.xml");
Response.TransmitFile(Server.MapPath("XML/Image.xml"));
Response.End();
It is working fine but when i keeping it within Update Panel not working. Any suggestion.