Share via


RequiredFieldValidator.InitialValue 属性

定义

获取或设置验证器的基值。 默认值是 null。 此 API 已废弃不用。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 移动应用 & 具有 ASP.NET 的网站

public:
 property System::String ^ InitialValue { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Bindable(true)]
public string InitialValue { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.InitialValue : string with get, set
Public Property InitialValue As String

属性值

验证程序的基值。

属性

注解

在验证期间,验证程序将提交的值与 属性的值 InitialValue 进行比较。 如果值相同,则验证程序假定尚未填充必填字段的值,并报告验证错误。

适用于

另请参阅