Wednesday, October 22, 2008

.NET Framework AJAX Update Panel Problem

Sys.WebForms.PageRequestManagerParserErrorException:

The message received from the server could not be parsed.

Common causes 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'



// Use Javascript



string url = Your URL;

string redirectURL = Page.ResolveClientUrl(url);

string script = "window.location = '" + redirectURL + "';";

ScriptManager.RegisterStartupScript(this, typeof(Page), "RedirectTo", script, true);

No comments: