I am getting alert box with the following when I am using Response.Redirect but I need I need it in server side code to change the page after all the conditions are successful.
How can I come out of this issue?
error:
sys.webforms.pagerequestmanagerparseerrorexception: The message
received from the server could not be parsed. Common casuse s for this
error are when the response is modified by calls to response.write(),
response filters, httpmodules, or server trace is enabled. details:
Error parsing near
<!DocType html PUB'.
Assuming that you’re using an UpdatePanel, add the following
ScriptModuleto your web.config:Your other option is to register the control doing the redirect as a postback control. With an UpdatePanel you can do this by adding a
PostBackTrigger. You can also use the script manager: