Using ASP.NET, Membership, and jQuery to Determine Username Availability
Posted by: 4GuysFromRolla.com Headlines,
on 23 Feb 2011 |
View original | Bookmarked: 0 time(s)
Chances are, at some point you've tried creating a new user account on a website and were told that the username you selected was already taken. This is especially common
on very large websites with millions of members, but can happen on smaller websites with common usernames, such as people's names or popular words or phrases in the lexicon
of the online community that frequents the website. If the user registration process is short and sweet, most users won't balk when they are told their desired username
has already been taken - they'll just try a new one. But if the user registration process is long, involving several questions and scrolling, it can be frustrating to
complete the registration process only to be told you need to return to the top of the page to try a different username.
Many websites use Ajax techniques to check whether a visitor's desired username is available as soon as they enter it (rather than waiting for them to submit the form).
This article shows how to implement such a feature in an ASP.NET website using Membership and
jQuery. This article includes a demo available for download that implements this behavior in an ASP.NET WebForms application that uses
the CreateUserWizard control to register new users. However, the concepts in this article can be
applied to ad-hoc user registration pages and ASP.NET MVC.
Read on to learn more!
Read More >