The problem is while having spaces in the file name and trying to download file in Firefox using ASP.NET web site.
Response.AddHeader("Content-Disposition", "attachment; filename=" + Filename);
The solution to this problem is to use following code
Response.AddHeader("Content-Disposition", "attachment; filename=\"" + Filename + "\"");
Response.AddHeader("Content-Disposition", "attachment; filename=" + Filename);
The solution to this problem is to use following code
Response.AddHeader("Content-Disposition", "attachment; filename=\"" + Filename + "\"");
No comments:
Post a Comment