ChangePassword.UserNameRequiredErrorMessage 属性
定义
获取或设置当用户将“用户名”文本框留空时显示的错误消息。Gets or sets the error message that is displayed when the user leaves the User Name text box empty.
public:
virtual property System::String ^ UserNameRequiredErrorMessage { System::String ^ get(); void set(System::String ^ value); };
public virtual string UserNameRequiredErrorMessage { get; set; }
member this.UserNameRequiredErrorMessage : string with get, set
Public Overridable Property UserNameRequiredErrorMessage As String
属性值
当用户将“用户名”文本框留空时显示的错误消息。The error message to display if the user leaves the User Name text box empty. 默认值是:必须填写“用户名”。The default string is "User Name is required.".
注解
设置此属性后,可以使用设计器工具自动将此属性的值保存到资源文件中。The value of this property, when set, can be saved automatically to a resource file by using a designer tool. 有关详细信息,请参阅 LocalizableAttribute 和 全球化和本地化。For more information, see LocalizableAttribute and Globalization and Localization.
适用于
另请参阅
- UserNameLabelText
- ASP.NET 登录控件概述ASP.NET Login Controls Overview
- 自定义 ASP.NET 登录控件的外观和行为Customizing Appearance and Behavior of the ASP.NET Login Controls
- ASP.NET Web 服务器控件模板ASP.NET Web Server Controls Templates
- 如何:向匿名用户和已登录的用户显示不同的信息How to: Display Different Information to Anonymous and Logged In Users
- 网站管理工具的 "安全" 选项卡Web Site Administration Tool Security Tab