I have a gridview and it has a download button. All functionalities are working fine except the download file as it has response.write and I am getting the patent error of "Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.".
Here is the code: Backend:
LinkButton downloadURL = (LinkButton)e.Row.FindControl("lnkButton");
ScriptManager.GetCurrent(this).RegisterPostBackControl(downloadURL);
front end:
<asp:LinkButton ID="lnkButton" runat="server" CausesValidation="False" CommandName="Download" CommandArgument='<%# Bind("URL")%>'OnClientClick="return confirm('Are you certain you want to >Download this ?');"> </asp:LinkButton>