How we set rool based security in asp.net
how we can differentiate in reg. user and admin login.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Raja TRank #685 · 3.5K reputationPosted Jul 15, 2015, 8:11 AM EDT
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.
Rajeesh MenothRank #118 · 18.4K reputationPosted Jul 15, 2015, 8:25 AM EDT