문제

I am working on an ASP.NET 2.0 application.

In 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 page directives I have validateRequest="false". It works locally but on IIS online it does not work.. Any idea guys?

도움이 되었습니까?

해결책

 <httpRuntime requestValidationMode="2.0"/>

This is the thing i had to update in web.config file and it was working fine after that.

Thanks

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top