When I did goggling for this error than I got lots of solution and every where I got same answer But I could not solve in my case.
Error
A potentially dangerous Request.Form value was detected from the client (ctl00$ContentPlaceHolder1$tbEditor="<span>
<span><sp...").
Explanation
As I could know from another answers if i want to solve this error than i will have to set <httpRuntime requestValidationMode="2.0" />
in my web.config in <system.web>
tag as i have done. And another setting in page directive ValidateRequest="false"
that i have done and it working fine also for this page.
Problem
But after that when i want to move from this page to any other .aspx page then i am getting as above error.
Here my web.config
<system.web>
<authentication mode="Forms" />
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Data.Services.Client, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<httpRuntime requestValidationMode="2.0" />
</system.web>
My page directive where I want to fix this issue.
<%@ Page Title="" Language="C#" MasterPageFile="~/AdminMaster.master" AutoEventWireup="true" CodeFile="EmailSetting.aspx.cs" Inherits="EmailSetting" ValidateRequest="false" %>
tbEditor
. Are you doing that? Do you need to?tbEditor
is passing a value from one page to another page i am don't know how it is passing. And i am using simple master page link to move from one page to another.