Hi guys, new posting here, so bare with me. Currently trying to allow two types of users to log in to my asp.net 4.0 site. Members and Admin. Have searched online and researched into roles but it seems a bit complicated for me!
Currently have a dataset with the Usernames, Passwords, and Admin from an access 2010 database .accdb.
The idea is, when the user logs in, the Master page of the redirected form (on page load) should check the current user identity to see if that user is an admin (yes or no).
If yes, it redirects to the admin apge, if not, it redirects to the forum pages.
As writing this, I've realised its a foreach loop, so the first user in the database is an admin. The loop enters, sees the first person is admin, and redirects me to the admin section. When I want to log in as a normal user, again, it starts at the top, finds the first person (admin) and redirects to the admin page wrongly.
How can I just check for the specific user t ...

Go to the complete details ...