I have 1 excel template in my local system named as "CLIA#OfLabTemplate.xls"
while downloading this template from UI in .net, the template name is getting changed to "CLIA_OfLabTemplate.xls".
What should I do so that the file name will not change ?
var filepath = Server.MapPath("~/App_Data/CLIA#OfLabTemplate.xls");
Response.ClearContent();
Response.AddHeader("Content-Disposition", "attachment; filename=" + myfile.Name);
Response.AddHeader("Content-Length", myfile.Length.ToString(CultureInfo.InvariantCulture));
Response.ContentType = "xls";
Response.TransmitFile(myfile.FullName);
Response.End();