Error from MSDN——No9. Login.UserNameRequiredErrorMessage

1)错误页面路径:

l         ms-help://MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.NETDEVFX.v20.en/cpref16/html/P_System_Web_UI_WebControls_Login_UserNameRequiredErrorMessage.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 user name 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 UserNameRequiredErrorMessage As String

 

Visual Basic (Usage)

Dim instance As Login

Dim value As String

 

value = instance.UserNameRequiredErrorMessage

 

instance.UserNameRequiredErrorMessage = value

 

C#

[LocalizableAttribute(true)]

public virtual string UserNameRequiredErrorMessage { get; set; }

 

C++

[LocalizableAttribute(true)]

public:

virtual property String^ UserNameRequiredErrorMessage {

         String^ get ();

         void set (String^ value);

}

 

J#

/** @property */

public String get_UserNameRequiredErrorMessage ()

 

/** @property */

public void set_UserNameRequiredErrorMessage (String value)

 

JScript

public function get UserNameRequiredErrorMessage () : String

 

public function set UserNameRequiredErrorMessage (value : String)

Property Value

The error message to display in a ValidationSummary control when the user name field is left blank. The default is "User Name." (错误在此)

 

 

3)简要说明:

在属性说明中,默认值是不正确的。根据VS 2005中的设置,默认值为:User Name is required.

posted on 2005-12-24 18:22  POLARIS  阅读(980)  评论(0编辑  收藏  举报

导航