BaseValidator.ControlToValidate 属性

定义

获取或设置要验证的控件的 ID。Gets or sets the ID of the control to validate. 默认值为 EmptyThe default value is Empty. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with 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; }
member this.ControlToValidate : string with get, set
Public Property ControlToValidate As String

属性值

要验证的控件的 ID。The ID of the control to validate.

属性

注解

如果 ID 为空或无效,则在预呈现期间引发异常。Throws an exception during pre-rendering if the ID is empty or not valid.

适用于

另请参阅