string Id= "0";
try
{
this.EnableViewState = false;
Response.ContentType = "text/.txt";
string Filename = System.Web.HttpContext.Current.Server.MapPath("txt/");
Filename = Filename + Id + ".txt";
Response.WriteFile(Filename);
// Response.Write("string");
string strFilename = Id + ".txt";
Response.Buffer = true;
Response.AddHeader("Content-Disposition", "attachment; filename=" + ID+".txt");
}
catch (Exception ex) { Response.Write(ex.ToString()); }
Response.End();