C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




how can we alert if a user name or password already exista in the database in asp.net


Posted Date: 21 Apr 2007      Total Responses: 3

Posted By: Anoop George       Member Level: Gold     Points: 2


Hi,
how can we alert if a user name or password already exista in the database in asp.net

Regards,
Anoop.




Responses

Author: Vadivel Mohanakrishnan    22 Apr 2007Member Level: DiamondRating:     Points: 2
1. If 'Password' is common no need to alert. Two person's can have same password also within a single site.

2. Yes 'User name' needs to be unique. That validation you need to do it in your stored procedure. Once a user tries to registering into your site with a 'username' and 'password' take that information to your stored procedure. And with a select statement check whether that username already exists in that table. If it exists return an error message from the stored procedure.

3. If not, you can pass an integer value for failure from the stored procedure. In your front end code, on seeing this integer value display an error message on a lable control.


Author: Anoop George    22 Apr 2007Member Level: GoldRating:     Points: 2
Thank You Vadivel...It was greattttttt


Author: Vadivel Mohanakrishnan    22 Apr 2007Member Level: DiamondRating:     Points: 2
Most Welcome anup. Glad that it helped :)


Post Reply
You must Sign In to post a response.
Next : Optional parameter in C#.net
Previous : How to get the data in textbox
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

it outsourcing

Contact Us    Privacy Policy    Terms Of Use