ValidateRequest = "false" does not work in ASP.NET 2.0

I am working on an ASP.NET 2.0 application.

On my page, I have:

<%@ Page Title="" Language="C#" MasterPageFile="~/AdminPanel/MasterPage.master" AutoEventWireup="true" ValidateRequest="false" CodeFile="SEO.aspx.cs" Inherits="AdminPanel_SEO" %> <asp:TextBox ID="TextBox1" TextMode="MultiLine" runat="server"></asp:TextBox> <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" /> 

and on the directive page I have validateRequest="false" . It works locally, but it does not work on IIS. Any idea guys?

+4
source share
1 answer
  <httpRuntime requestValidationMode="2.0"/> 

This is what I had to update in the web.config file, and after that it worked fine.

thanks

0
source

Source: https://habr.com/ru/post/1484240/


All Articles