﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2399	FCKEditor AJAX problem - WebForms.PageRequestManagerServerErrorException: Status code 500	Pedantix		"When FCKEditor appears on an aspx / ASP.Net page which also uses an UpdatePanel, an error sometimes occurs on postback.  The error text is as follows: 
WebForms.PageRequestManagerServerErrorException: Status code 500

The error occurs when the FCKEditor control has content rendered in HTML.  

I found the following fix at ASP.Net's forum...

I resolved it by adding ValidateRequest=""false"" in the tag <%@  Page ...%>

The page declaration can be set as follows...  
<%@ Page Language=""VB"" CodeFile=""blah.aspx.vb"" Inherits=""blah"" ValidateRequest=""false"" %>

After a little delving, I've discovered ""why"" the ValidateRequest=False trick works (for FCKEditor in an UpdatePanel).  First of all, note the following about ValidateRequest:

Request validation, a feature of ASP.NET since version 1.1, prevents the server from accepting content containing un-encoded HTML. (from http://www.asp.net/learn/whitepapers/request-validation/)

 

I found that if my FCKEditor contains HTML then it fails the postback.  I'm guessing that the FCKEditor does not pass ""un-encoded HTML"" back when it postsback.  When I remove the HTML content from my FCKEditor, the error does not occur.

 
"	Bug	closed	Normal		Server : ASP.Net		expired		
