Error from MSDN——No8. Login.PasswordRequiredErrorMessage
(1)错误页面路径:
l ms-help://MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.NETDEVFX.v20.en/cpref16/html/P_System_Web_UI_WebControls_Login_PasswordRequiredErrorMessage.htm
(2)页面内容:
Note: This property is new in the .NET Framework version 2.0.
Gets or sets the error message to display in a ValidationSummary control when the password field is left blank.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
Syntax
Visual Basic (Declaration) |
<LocalizableAttribute(True)> _ Public Overridable Property PasswordRequiredErrorMessage As String |
Visual Basic (Usage) |
Dim instance As Login Dim value As String value = instance.PasswordRequiredErrorMessage instance.PasswordRequiredErrorMessage = value |
C# |
[LocalizableAttribute(true)] public virtual string PasswordRequiredErrorMessage { get; set; } |
C++ |
[LocalizableAttribute(true)] public: virtual property String^ PasswordRequiredErrorMessage { String^ get (); void set (String^ value); } |
J# |
/** @property */ public String get_PasswordRequiredErrorMessage () /** @property */ public void set_PasswordRequiredErrorMessage (String value) |
JScript |
public function get PasswordRequiredErrorMessage () : String public function set PasswordRequiredErrorMessage (value : String) |
Property Value
The error message to display in a ValidationSummary control when the password field is left blank. The default is "Password." (错误在此)
(3)简要说明:
在属性说明中,默认值是不正确的。根据VS 2005中的设置,默认值为:Password is required.