我正在开发一个ASP.NET 2.0应用程序。
在我的页面中,我有:
在页面指令中,我有
在我的页面中,我有:
<%@ 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" />
在页面指令中,我有
validateRequest="false"
。它在本地工作正常,但在线上的 IIS 上不起作用.. 有任何想法吗?
<httpRuntime requestValidationMode="2.0"/>
,但你可能需要在.config文件中添加其他脚本。我在2012年10月也遇到了同样的问题。 - MethodManweb.config
中添加了<httpRuntime requestValidationMode="2.0"/>
吗? - Satpal