Opened 16 years ago
Closed 13 years ago
#2399 closed Bug (expired)
FCKEditor AJAX problem - WebForms.PageRequestManagerServerErrorException: Status code 500
Reported by: | Pedantix | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Server : ASP.Net | Version: | |
Keywords: | Cc: |
Description
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.
Attachments (1)
Change History (6)
comment:1 Changed 16 years ago by
Component: | General → Server : ASP.Net |
---|
comment:2 follow-up: 3 Changed 16 years ago by
Keywords: | Pending WorksForMe added |
---|
comment:3 Changed 16 years ago by
Replying to alfonsoml:
Are you using the latest versions of the .net component and the FCKeditor core?
That problem was fixed long ago in #294
Yes I'm using latest version of FCKEditor. This with ASP.Net 3.5.
Further testing, I've found that the error occurs with postbacks from LinkButtons rather than postbacks from Buttons and other controls.
I've attached a sample project, if you'd like to test it.
Changed 16 years ago by
Attachment: | TestBug#2399.zip added |
---|
ASP.Net project with FCKEditor in an UpdatePanel and a LinkButton that causes the error described in this note (FCKEditor files and DLL excluded to meet upload limit)
comment:4 Changed 16 years ago by
Keywords: | Pending removed |
---|
comment:5 Changed 13 years ago by
Resolution: | → expired |
---|---|
Status: | pending → closed |
There is a new ASP.NET control available: CKEditor for ASP.NET. The old control (FCKeditor.Net) is no longer maintained, so I'm closing the ticket. In the new CKEditor control we have solved many issues with ASP.NET AJAX.
However, if you still find a similar bug in CKEditor 3.x, please create a new ticket for it.
Are you using the latest versions of the .net component and the FCKeditor core?
That problem was fixed long ago in #294