Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Created Unassigned: htmlEditorExtender - wrong order of operations? [28001]

$
0
0
In my website, I let people paste in HTML into a textbox that has been extended with the HtmleditorExtender. They click a SUBMIT button, and the html is submitted to my website, which checks it for errors. My website gives an error message if there is an error.

I have found an interesting quirk. If there is an error, and my website reports it, then you would think if the user clicks the submit button again, the error will still be reported. In fact, if he clicks it a hundred times, he will get the error message one hundred times.. However, he gets the error message only once. So it seems (I may be wrong) that the htmlEditorExtender makes some change of its own to the html in the textbox, but it makes the change AFTER the submit button is first clicked.

There is also the possibility that it uses libraries (such as the sanitizer) that might kick in at the wrong time.

The point is that the htmlEditorExtender can clean up the html – but it should not clean it up after the horse is out of the barn, and the html has been sent to the server. Here is my code:

```[ajaxToolkit:HtmlEditorExtender ID="HtmlEditorExtender1" EnableSanitization="false" TargetControlID="TextBoxContents" DisplaySourceTab="true" runat="server"> [/ajaxToolkit:HtmlEditorExtender>

```


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>