I have situation where I'm opening a modal window using javascript i.e "download.aspx", 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.
I'm using Ajax on my parent window .
Every thing goes fine , but when I do Response.Transmit("~/filename.xls");
Also I'm registring the Javascipt with "RegisterClientScriptBlock()" or RegisterStartupScript()
I'm getting follwing error
Sys.WebForms.PageRequestManagerServerErrorException: The script tag registered for type 'ASP.downloadxls_aspx' and key 'TicketNotExist' has invalid characters outside of the script tags: alert('Recipient does not exist:'). Only properly formatted script tags can be registered.