how we set rool based security in asp.net
how we can differentiate in reg. user and admin login.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rajeesh MenothPosted Jul 15, 2015, 12:25 PM
Raja TPosted Jul 15, 2015, 12:11 PM
In ur table add new column like UserRole as(Bit data type).
By default you define like user 0 and admin 1
Now check when login user at the time based on userID check the table UserRole user(0) or admin(1).
Thanks.