Click here to Skip to main content
13,047,131 members (58,617 online)
Rate this:
Please Sign up or sign in to vote.
See more:

in my registration for when new user select username in textbox , it should return whether user name exists or not. i want that functionality. how can i do?
Posted 7-Mar-13 18:01pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

You can check the username availability with ajax.
Check here Username availability check with ajax[^]
pradiprenushe 8-Mar-13 2:21am
Very good solution.
I have one doubt, we can do this by using update panel, web service or page method. Which method you prefer as best & why?
aspnet_regiis -i 8-Mar-13 4:02am
UpdatePanel is the best way. Since it does not use javascript. So less client side code and less browser compatibility issues
pradiprenushe 8-Mar-13 4:16am
Thanks for answer.
Rate this: bad
Please Sign up or sign in to vote.

Solution 4

Create on local web service. Create on web method in to user is present or not. Call this web method in textbox onblur event.
This will check username exist or not asynchronusly & also your ui will not be blocked.
Refere this link

You can also use page method for this purpose
Refere this
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

if you save the user details in database
then check or write a query that compare text box value into database..
if it exists then show the message to user...

ex: select username from registration where name="textbox1.Text"
check condition like
{"alredy exists");

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 8 Mar 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100