Control.ValidateRequestMode 属性

定义

获取或设置指示控件是否检查来自浏览器的客户端输入是否具有潜在危险值的值。Gets or sets a value that indicates whether the control checks client input from the browser for potentially dangerous values.

public:
 virtual property System::Web::UI::ValidateRequestMode ValidateRequestMode { System::Web::UI::ValidateRequestMode get(); void set(System::Web::UI::ValidateRequestMode value); };
public virtual System.Web.UI.ValidateRequestMode ValidateRequestMode { get; set; }
member this.ValidateRequestMode : System.Web.UI.ValidateRequestMode with get, set
Public Overridable Property ValidateRequestMode As ValidateRequestMode

属性值

确定控制器是否检查客户输入的值。A value that determines whether the control checks client input. 值可以包括 DisabledEnabledInheritValues can include Disabled, Enabled, and Inherit. 默认值是 Inherit,这意味着控件从其父级获取值。The default is Inherit, which means that the control gets the value from its parent.

注解

有关请求验证的详细信息,请参阅 UnvalidatedRequestValuesFor more information about request validation, see UnvalidatedRequestValues.

适用于