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)

TestBug#2399.zip (4.2 KB) - added by Pedantix 16 years ago.
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)

Download all attachments as: .zip

Change History (6)

comment:1 Changed 16 years ago by Pedantix

Component: GeneralServer : ASP.Net

comment:2 Changed 16 years ago by Alfonso Martínez de Lizarrondo

Keywords: Pending WorksForMe added

Are you using the latest versions of the .net component and the FCKeditor core?

That problem was fixed long ago in #294

comment:3 in reply to:  2 Changed 16 years ago by Pedantix

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 Pedantix

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 Frederico Caldeira Knabben

Keywords: Pending removed

comment:5 Changed 13 years ago by Wiktor Walc

Resolution: expired
Status: pendingclosed

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.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy