BaseValidator.ControlToValidate 属性

定义

获取或设置要验证的控件的 ID。 默认值是 Empty。 此 API 已废弃不用。 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。

public:
 property System::String ^ ControlToValidate { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Bindable(false)]
[System.ComponentModel.TypeConverter(typeof(System.Web.UI.Design.MobileControls.Converters.ValidatedMobileControlConverter))]
public string ControlToValidate { get; set; }
[<System.ComponentModel.Bindable(false)>]
[<System.ComponentModel.TypeConverter(typeof(System.Web.UI.Design.MobileControls.Converters.ValidatedMobileControlConverter))>]
member this.ControlToValidate : string with get, set
Public Property ControlToValidate As String

属性值

String

要验证的控件的 ID。

属性

注解

如果 ID 为空或无效,则在预呈现期间引发异常。

适用于

另请参阅