This project is read-only.

About UserNameValidator

The UserNameValidator is a standard validator control, such as RequiredFieldValidator. Only it can check if the entered string matches existing membership user. Using the Mode property you can specify if the user has to exist or must not exist.

Example code

<asp:Label ID="Label1" runat="server" Text="Enter existing user name:" />
<asp:TextBox ID="TextBoxUserName" runat="server" />
<asp:Button ID="Button1" runat="server" Text="Submit" />
<altairis:UserNameValidator ID="UserNameValidator" runat="server" ControlToValidate="TextBoxUserName" Mode="MustExist" Text="User not found" />

Special notes

Due to its nature, validation is performed only on server side. Client-side validation is not supported.

Last edited Sep 21, 2008 at 2:23 PM by altair, version 3


No comments yet.