Welcome Guest Search | Active Topics | Sign In | Register

How to set HTML content from Database Options
Olivertech
Posted: Thursday, October 21, 2010 2:13:25 PM
Rank: Newbie
Groups: Member

Joined: 10/21/2010
Posts: 4
Hi,

I am trying to set a html content, from database, to Html Editor, and I am getting the error below. How can I resolve that, without disabling page validation ?

Error description:
===========

A potentially dangerous Request.Form value was detected from the client (TextBox1="<p>&nbsp;</p>
").
Description: Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. You can disable request validation by setting validateRequest=false in the Page directive or in the configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case.

Exception Details: System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (TextBox1="<p>&nbsp;</p>
").

regards,
olivertech.
eo_support
Posted: Thursday, October 21, 2010 2:17:17 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Please try to isolate the problem into a separate test page and then post the test page. You will need to hardcode the HTML content that you give to the HTML editor so that your test page no longer need to access your database. Once we have the page will take a look and see what we can find.

Thanks!
Olivertech
Posted: Thursday, October 21, 2010 8:57:17 PM
Rank: Newbie
Groups: Member

Joined: 10/21/2010
Posts: 4
Hi,

I suppose that is not necessary to do that, cause I took the same erros with any kind of Html content. As you can see in my previous message, the content was "<p>&nbsp;</p>" and it causes the message error.

In my site, I will have a situation where user can edit a news, and he can search in database this news, and load it to the form. So, in this moment, I need to take the html content without any kind of error.

Is it possible to be done ?

Regards,
Olivertech
eo_support
Posted: Thursday, October 21, 2010 9:09:42 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

It does not suppose to do that. You should be able to submit any HTML with our Editor (Otherwise the Editor control would be completely useless because user won't be able to submit any HTML at all). That's why we need you to isolate the problem into a test page so that we can take a look.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.