Geting javascript error when downloding a xls file from server
<p>I have situation where I'm opening a modal window using javascript i.e <code>"download.aspx"</code>, On this aspx file I have a textbox to input ID and based upon this ID I query server and then download and XLS file from a location.</p>

<p>I'm using Ajax on my parent window .</p>

<p>Every thing goes fine , but when I do <code>Response.Transmit("~/filename.xls");</code></p>

<p>Also I'm registring the Javascipt with <code>"RegisterClientScriptBlock()"  or RegisterStartupScript()</code></p>

<p>I'm getting follwing error</p>

<p><code>Sys.WebForms.PageRequestManagerServerErrorException:</code> The script tag registered for type <code>'ASP.downloadxls_aspx'</code> and key <code>'TicketNotExist'</code> has invalid characters outside of the script tags: <code>alert('Recipient does not exist:')</code>. Only properly formatted script tags can be registered.</p>
