Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am getting "A potentially dangerous Request. Form Field value was detected from client ct100_hidDept on clicking button. My application is running in framework 3.5.
I have tried the below fixes. Still issue remains

What I have tried:

Code tried:
Page level added validaterequest
<pre><%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" ValidateRequest="false"
    CodeFile="UserManagement.aspx.cs" Inherits="UserManagement" MaintainScrollPositionOnPostback="true" %>

In web.config file added validaterequest
<pages validateRequest="false">
Posted

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