protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { TextBox1.Text = "start"; } } protected void Button1_Click(object sender, EventArgs e) { Response.ContentType = "application/pdf"; Response.AppendHeader("Content-Disposition", "attachment; filename=print_ordre.pdf"); Response.TransmitFile(Server.MapPath("~/print_ordre.pdf")); //Response.End(); TextBox1.Text = "finish"; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)