Saturday, 28 April 2012

File Name Gets Truncated When Downloading The File Using Mozilla Firefox

Solved the Firefox Space problem. Surround your FileName with quotes.

You can Change the Code like this.


HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment; filename=" & """Month wise Employee Details" & "" & file.Extension)

HttpContext.Current.Response.ContentType = type
Response.TransmitFile(filename)
Response.End()



No comments:

Post a Comment