Click here to Skip to main content
15,896,915 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
in my login page , 2 login dashboards are used admin login and customer login page.
both are same page.when i have access customer login, username and password click enter button admin login event fired....


can u tell me how to process....
Posted

Don't have two logins on the same page - it is a recipe for confusing your users.
Instead, have a single login, and decide the role (user or admin) from the user name and the role assigned to that user in the database.
 
Share this answer
 
Use membership for that.Just put one login control and specify roles for users .
 
Share this answer
 
you can define a field name usertype in your database table and use this to distinguish between normal user and admin user at the time of login.

hope it helps :)

for further queries comment here!!
 
Share this answer
 

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