Solved the Firefox Space problem. Surround your FileName with quotes.
You can Change the Code like this.
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