0

When using

Response.AddHeader("Content-Disposition", "attachment;filename=" + fileName)

double quotes in fileName gets converted to -. Any suggestion how to use double quotes in fileName ?

Aminadav Glickshtein
  • 23,232
  • 12
  • 77
  • 117
  • http://stackoverflow.com/questions/3905946/how-to-add-doublequotes-to-a-string-that-is-inside-a-variable – RohitS Jan 29 '17 at 07:22
  • filename can't have the following characters:\ / : * ? " < > |". that's why I was unable to add these characters in file name. – user3217977 Jan 31 '17 at 09:46
  • yes..sorry overlooked that point.. the solution was for generating string with quotes.. :/ – RohitS Jan 31 '17 at 19:18

0 Answers0