#2399: FCKEditor AJAX problem - WebForms.PageRequestManagerServerErrorException:
Status code 500
----------------------+-----------------------------------------------------
 Reporter:  Pedantix  |       Owner:     
     Type:  Bug       |      Status:  new
 Priority:  Normal    |   Milestone:     
Component:  General   |     Version:     
 Keywords:            |  
----------------------+-----------------------------------------------------
 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.

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/2399>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to