Hi All
I have got a registration form..where new Users create the new user IDs...
I just want to check whether the username exists in the database as soon as the user leaves the textbox .
Please help.
Thanks
Asif Ali.
Are you using ASP.NET 2.0 Membership?
Or are you doing things yourself in a SQL table?
HI there
I m doing thing son my own on access database.
Thanks
Asif Ali.
TextBox - Database
Hi Kaushal
U havent seen my question properly.
And also in future please abstain from answering my Q's.
Thanks
Asif.
acube82:
Hi Kaushal
U havent seen my question properly.
And also in future please abstain from answering my Q's.
Thanks
Asif.
oh... i am so so so so so sorrryyy... if you have read the sample code which i have posted before... that was written in btnLogin_Click event... (but we should have that much knowledge that we can write this code event in textbox_chanage event with autopostback tru for textbox)... the code was about select query run against database which would return the datareader if there would be any user in the database with the same name (by checking reader.hasrows) other wise ... it will go to goto label "invaliduserpass" (we should have that much common knowledge that we can change it to msg like "user name already exists..".. anyway... your quote posted will be taken care of in future... thanx..
Ahh, did you get an answer to your question?
Basically (as I think was stated above)... you'd just want to run a SQL query against you're table to see if the username already exists... if you need help with that let me know :)
Since, you want that if the user exists or not as soon as the user leaves the textbox you can make use of AJaX calls. If you are using ASP.NET 2.0 then you can use client callbacks. Using AJAX your page won't refresh and you will know whether the user exists or not. Let me know if you need further details.
Hi...Azam...
I m a beginner..So not into AJAX at the moment.
If U can help me out, will be highly appreciated.
Thanks
Asif Ali.
0 comments:
Post a Comment