HttpContext.Current.Response.ContentType = "Application/xmsexcel"; HttpContext.Current.Response.AppendHeader("Content-Disposition", "attachment; filename=" + txt.Text + ".xls"); HttpContext.Current.Response.TransmitFile(Server.MapPath(@"D:\new1.xls"));
i get the solution my self ... HttpContext.Current.Response.TransmitFile(System.IO.Path.GetFullPath(@"D:\new1.xls"));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)