Code on UserControl creating error
<p>I use the following code to open a PDF on my asp .net application:</p>

<pre><code>    Response.Buffer = false; //new
    Response.Clear(); //new
    Response.ClearContent();
    Response.ClearHeaders();
    Response.AddHeader("Content-Disposition", "attachment; filename=" + filename);
    Response.ContentType = "Application/pdf";
    try
    {
        Response.TransmitFile(filename); 
        Response.End();
    }
    catch
    {
        Response.ClearContent();
    }
</code></pre>

<p>Works fine in most cases, but when I put this code on a UserControl button event it gave me a parser error, is there a simple way to either fix or trigger a complete postback so it should work?</p>
