Click here to Skip to main content
15,881,139 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
If i used ckeditor and insert value like CKEditorControl1.Text then it shown error like this:

XML
A potentially dangerous Request.Form value was detected from the client (ctl00$ContentPlaceHolder1$CKEditorControl1="<p>
bbbbbbbbbbbbbb...").


Please help
Posted

Your request must be having a < or >, thus the error.

If you cannot avoid it, then put validateRequest="false" in your page directive or web.config file.
Details here: Adding Cross-Site Scripting Protection to ASP.NET 1.0[^]

If you read the article, you will get the reason and why it's not suggestible.

Following few discussion, to read:
Same error discussed[^]
Same error discussed - 2[^]
 
Share this answer
 
Comments
rahul dev123 26-May-11 5:29am    
I already told that i used validateRequest="false" but its not working
Sandeep Mewara 26-May-11 6:24am    
Did you went through the links and discussions I shared?
 
Share this answer
 
Comments
rahul dev123 26-May-11 5:19am    
i also used validateRequest="false" but its not working
I think better to prevent < > values to be entered.. use javascript keypress event and keycode features to prevent such values to be enter...
 
Share this answer
 
v2

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