Author: mabellez | Posted on: 7/30/2008 1:27:10 PM | Views : 358

I have the following C# code. Once the "open" button was clicked, this code will open a pdf file.

1    Response.ContentType = "text/pdf";
2    Response.AppendHeader("Content-Disposition", "attachment; filename=report.pdf");
3    Response.TransmitFile("reports/" + this.Master.Username.Text.Trim() + ".pdf");
4    Response.End();

It works fine by itself, but I need to the button into an updatePanel. Once the button is in a updatePanel, it won't work and will give me error complaining about response.write...etc.Anybody get any ideas?
 

 
...

Go to the complete details ...