I found the solution, here it is, I used UrlEncode
on the filename which helped me solve my problem.
Response.AddHeader("Content-Disposition", String.Format("attachment; filename={0}", HttpUtility.UrlEncode(docFileDTO.FileName)));
More Related Contents:
- Server.UrlEncode vs. HttpUtility.UrlEncode
- How to set correct file permissions for ASP.NET on IIS
- Hidden Features of ASP.NET [closed]
- Return XML from a controller’s action in as an ActionResult?
- How serious is this new ASP.NET security vulnerability and how can I workaround it?
- Why order matters in this RegEx with alternation?
- Unable to start debugging on the web server. Could not start ASP.NET debugging VS 2010, II7, Win 7 x64
- What perfmon counters are useful for identifying ASP.NET bottlenecks?
- I’m lost. What happened to ASP.NET MVC 5?
- ASP.NET Web API 2: How do I log in with external authentication services?
- You must add a reference to assembly ‘netstandard, Version=2.0.0.0
- MemoryCache Empty : Returns null after being set
- ‘WebForm_DoPostBackWithOptions’ is undefined in IE11 Preview
- In ASP.NET, when should I use Session.Clear() rather than Session.Abandon()?
- Store String Array In appSettings?
- How to deploy ASP.NET MVC 4 application using localDB to local IIS on Windows 7?
- Cannot use a leading ../ to exit above the top directory
- What’s the difference between ASP.NET 5, .NET Core, and ASP.NET Core 5? [closed]
- Web API Queryable – how to apply AutoMapper?
- ‘System.Net.Http.HttpContent’ does not contain a definition for ‘ReadAsAsync’ and no extension method
- v11.0\WebApplications\Microsoft.WebApplication.targets was not found when file actually references v10
- What does the web.config compilation/assemblies element do?
- The configuration section ‘system.web.extensions’ cannot be read because it is missing a section declaration
- How to configure SMTP settings in web.config
- ASP.NET Web Site or ASP.NET Web Application?
- aspnet_compiler finding wrong version of System.Web.WebPages 1.0.0.0 instead of 2.0.0.0
- All requests to ASP.NET Web API return 404 error
- How do I get msdeploy to create App_Data if it doesn’t exist, but not delete any contents of the remote directory?
- AspNetSynchronizationContext
- URL Routing, Image Handler & “A potentially dangerous Request.Path value”