The purpose of this dialog box is to add a server behavior to a user registration page that verifies that the user name submitted by a visitor is unique before adding that visitor to your database of registered users.
Before starting, you must complete the following tasks:
With these prerequisites in place, you can complete the dialog box as follows.
The opened page should alert the user that the user name is already taken and let the user try again.
When the user clicks the Submit button on the registration page, the server behavior compares the user name entered by the user against the user names stored in a database table of registered users. If no matching user name is found in the database table, the server behavior carries out the insert record operation normally. If a matching user name is found, the server behavior cancels the insert record operation and opens a new page (usually a page alerting the user that the user name is already taken).