Saturday, June 22, 2013

protected void Button1_Click(object sender, EventArgs e) { Response.Clear(); Response.AddHeader("Content-Disposition","inline;filename=myfile.pdf"); Response.ContentType = "application/pdf"; Response.WriteFile("~/Hello.pdf"); Response.End(); }

No comments:

Post a Comment