Share via


ValidationSummary.FormToValidate 属性

定义

获取或设置想要验证的 Form 的标识符。 默认值为空字符串 ("")。 此 API 已废弃不用。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 移动应用 & 具有 ASP.NET 的网站

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

属性值

想要验证的 Form 的标识符。

属性

注解

如果要使用验证,此属性必须包含表示有效表单 ID 的值。 FormToValidate可以在代码中或以声明方式设置 属性,如 类的示例中ValidationSummary所示。

适用于

另请参阅