Click here to Skip to main content
15,867,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I added tinymce3.5.7 in my new project. it runs accurately in local server,but in online it produced the following error.

A potentially dangerous Request.Form value was detected from the client (ctl00$ContentPlaceHolder1$RichTextBox="

TEST!

");



i am also added <%@ Page Language=C#; ValidateRequest="false"%>
Posted
Comments
I.explore.code 1-Nov-12 7:44am    
Can you post the relevant markup and code behind too? Also, you shouldn't set ValidateRequest to false its not advisable to do that for security purposes.

1 solution

It seems that your richtextbox control is generating HTML code. It tries to pass HTML value into server. By default, this is not allowed. To allow it, you need to configure your Web.config:
this is wrong:
XML
<system.web>
    <httpruntime requestvalidationmode="2.0" />
</system.web>

this is correct:
XML
<system.web>
    <httpruntime requestValidationMode="2.0" />
</system.web>
 
Share this answer
 
v3
Comments
Maddy selva 2-Nov-12 3:44am    
This Line was not supported in my webconfig.

Any other Possibilities?
adriancs 2-Nov-12 4:10am    
sorry. this is wrong >> requestvalidationmode
this is correct >> requestValidationMode
adriancs 4-Nov-12 6:40am    
Hi buddy, you forgot to accept solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900