TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Dorothy
NA
10
0
Problem: Login with admin rights
Nov 14 2006 4:14 AM
I’m doing a login page using C# and my login works perfectly fine, one problem though is that I want to check if the person logged in has administrative rights or not so that I can direct them to a correct page. If for example Dorothy logged in I must direct her to an admin page. When I do my select statement I get different errors, can someone pls help with the correct SQL statement? I have three tables:
tblUser
UserId
Username
Password
1001
Dorothy
12345
1001
Jane
78965
tblRole
RoleId
RoleDescription
1111
Administrator
1112
Floor Manager
1113
Sales Director
tblUserRolelink
UserId
RoleId
1001
1111
1001
1113
Reply
Answers (
5
)
Serial Port Event
forums source code