Response an xml file in modal popup
<p>This code is in control.ascx  and control is put in ModalPopup.aspx page.</p>

<p>First ai try with response.end() - this code throw exception.
After ai try coment this line, but nothing is hapen.</p>

<p>Browser is IE8</p>

<pre><code>try
    {
        //export
        StringBuilder sb = ExportToExcelXml();
        System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding();
        byte[] byteText = encoding.GetBytes(sb.ToString());

        Response.Clear();
        Response.Charset = "utf-8";
        Response.ContentType = "text/xls";
        Response.AddHeader("content-disposition", "attachment; filename=export.xls");
        Response.BinaryWrite(byteText);
        //Response.End();         
    }
    catch (Exception ex)
    {
</code></pre>
