共用方式為


BaseValidator.ControlToValidate 屬性

定義

取得或設定待驗證的控制項 ID。 預設值是 Empty。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 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; }
[<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

屬性值

待驗證之控制項的 ID。

屬性

備註

如果標識符是空的或無效,在預先轉譯期間擲回例外狀況。

適用於

另請參閱