Using ASP.NET, Membership, and jQuery to Determine Username Availability

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Chances are, at some point youve 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 peoples 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 wont balk when they are told their desired username
has already been taken - theyll 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 visitors 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 http://www.4guysfromrolla.com/articles/120705-1.aspx Membership and
http://jquery.com/ jQuery . This article includes a demo available for download that implements this behavior in an ASP.NET WebForms application that uses
the http://www.4guysfromrolla.com/articles/061406-1.aspx 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!

http://www.4guysfromrolla.com/articles/022311-1.aspx" class="readmore Read More >

View the full article
 
Back
Top