RequiredFieldValidator.InitialValue 屬性

定義

取得或設定驗證程式的基底值。 預設值是 null。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with 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 進行比較。 如果值相同,驗證程式會假設必要欄位的值尚未填入,並報告驗證錯誤。

適用於

另請參閱