Author: shifali | Posted on: 3/8/2009 11:48:37 PM | Views : 291

Hi,

     I am using follwoing c# code to download file. It is working fine in all browsers but it gives error



'Internet explorer cannot download file. internet explorer was not able to open this internet site.the requested site is either unavailable or can not be found'.
My C# code is as:

            Response.ClearHeaders();
            Response.Clear();
            Response.ContentType = "application/exe";
           Response.AddHeader("Content-Disposition", "attachment; filename=" + Server.MapPath("~") + @"\ABDownload\GulAktivBedrift.exe");
         &n ...

Go to the complete details ...