Posted on: 11/30/2012 9:20:08 PM | Views : 603

hai,

I have an exe file in my wesite and i wrote the below code for downloading it . I could download it perfectly from Google chrome ( even if It is asking, deny or allow warning after download condition) But from Firefox i couldnt. It is showing some part of the file name.
 Is there any problem if the filename has spaces ?
protected void DownloadSoft() { string filename = string.Empty; try { filename = "WindowsApp/Software Runner App.exe"; if (!string.IsNullOrEmpty(filename)) { string path = Server.MapPath(filename); System.IO.FileInfo file = new System.IO.FileInfo(path); if (file.Exists) { Response.Clear(); ...

Go to the complete details ...