This is a migrated thread and some comments may be shown as answers.

Parser Exception due to RadEditor Content

2 Answers 74 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 28 Oct 2008, 07:15 PM
I am having an interesting problem that would on the surface appear to be unrelated to the RadEditor.

Basically, I have a RadEditor near the top of the page, not inside of a update panel. This gets its content loaded from a database.

Underneath this, I have an updatepanel with some drop down lists and a few buttons that do stuff with the selected items in the drop down list. When I press one of these buttons for the first time after loading the page, I get Sys.WebForms.PageRequestManagerParserErrorException, with details:

Error parsing near ' <!DOCTYPE html P'.

The very odd thing is this: I ONLY get this error if there is complicated HTML text within the RadEditor at the top of the page. If this Editor is empty, then the error does not occur. I have tested this over and over again, always with the same results. If there is just plain text in the editor, I do not get ParserErrorException. If there is more complicated html that I have pasted into the Editor previously and saved to the database, that has now been loaded into the Editor, I always get the exception when I press one of the buttons in the uploadpanel below it for the first time after I have loaded the page.

Any thoughts as to how the contents of the RadEditor above the Update Panel would affect the presence of the Parser exception? All help would be greatly appreciated.

UPDATED - This Exception does not appear in Internet Explorer, but does occur in Firefox 2 and 3 and in Safari.

2 Answers, 1 is accepted

Sort by
0
Jonathan
Top achievements
Rank 1
answered on 28 Oct 2008, 08:01 PM
The problem also goes away if I remove the update panel surrounding the drop down lists and buttons. I would like to keep the update panel, however.
0
Rumen
Telerik team
answered on 31 Oct 2008, 01:04 PM
Hi Jonathan,

Do you experience this problem if you remove the DOCTYPE from the full html content that you are loading in RadEditor?

Are you using the latest version 2008.2.1001 of RadEditor for ASP.NET AJAX?

Please, review the following articles and blog post providing information about this error:

Sys.WebForms.PageRequestManagerParserErrorException - what it is and how to avoid it,
Firewalls breaking ASP.NET AJAX!

If you are unable to solve the problem, please open a support ticket from your account and send a sample working project that demonstrates the issue. Please, include also sample content for test in a text file. I will examine it and once I reproduce the problem with RadEditor, I will do my best to provide a solution.

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Jonathan
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or