Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All of U..

I have problem with rich textbox...

on saving it is giving Error :A potentially dangerous Request.Form value was detected from the client

I handled it by :
1) ValidateRequest=false
2) In webConfig < httpRuntime requestValidationMode=2.0 >
3) < pages buffer="true" validateRequest=false .

But problem still persists.
if I add < httpRuntime requestValidationMode="2.0" > it gives MAC Viewstate problem. My website are running in 4.0 framework.

Please Help me .
Posted

Shishir,

have you tried this???

VB
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="default.aspx.cs"
    Inherits="_default" ValidateRequest="false"%>
 
Share this answer
 
Hi,

check MSDN article[^] for more information about this issue.

hope this will help you,

thanks
-Amit
 
Share this answer
 
See below link, it provides the reason for error occurence and also fix for that.

http://www.asp.net/whitepapers/request-validation[^]

For .Net 4.0:

ASP.NET 4.0 potentially dangerous Request.Form value was detected[^]
 
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