HttpContext.Current.Response.ContentType = "Application/xmsexcel" HttpContext.Current.Response.AppendHeader("Content-Disposition", "attachment; filename=" & textbox1.text &".xls") HttpContext.Current.Response.TransmitFile(Server.MapPath("~\Bin\toExcel.xls"))
document.getElementById("<%= TextBox1.ClientID %>").value = "";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)