How to implement roles with windows authentication ?

Hi,

I have a database table  (Permissions) which consists of following contents

                              Permissions
=======================================
User                   | Page1 | Page2 | Page3 | Page 4 | Page5
=======================================
Admin                |  1      |    1     |   1      |    1       |     1
----------------------------------------------------------------------
Guest                 |  1      |   0      |   1       |     0     |     1
=======================================

1 -> Yes (He can view the page)
0 -> No (He can't view the page)

I want to implement windows authentication with roles. Can you suggest me the way to do it ? When the user try to access the particular page without necessary permissions then, i want to display a message stating "You are not authorized user !", else he can view the page.

Thanks,
Kishore
kishore_peddiAsked:
Who is Participating?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.