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

  • Thread starter Thread starter 4GuysFromRolla.com
  • Start date Start date
4

4GuysFromRolla.com

Guest
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 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 >

View the full article
 
Back
Top