Click here to Skip to main content
15,908,264 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to check whether the user is exists or not in database...when user enters the user id into the textbox..if the user exist then allow successfull login and if not then redirect to new user registration..in asp.net using c#
Posted
Comments
syed shanu 21-Apr-14 0:41am    
So what is the problem did you find.on login button click pass the username as parameter to sql and writea query as select * from userTable where user name=@userName.
If user exist redirect to your home page and if not redirect to your user registration page.google it there is lots of example program availble.
syed shanu 21-Apr-14 0:42am    
Check this link : http://www.aspdotnet-suresh.com/2011/12/how-to-create-simple-login-form-using.html


http://forums.asp.net/t/1756812.aspx?Log+in+Check+if+User+Name+and+password+exist+in+SQL+database

1 solution

 
Share this answer
 
v2

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900