Asp. net webForm sets the method that allows the form to submit Html

  • 2021-10-16 01:24:00
  • OfStack

1. Add ValidateRequest= "false" to the head of the page where the form needs to submit Html


<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" %>

2. webConfig's < system.web > Configuration under Node


<httpRuntime requestValidationMode="2.0"/>

Related articles: