Hai friends,
I am having 3 types of users.
type a can access only 1 page from my web application.
type b can access only 2 pages from my web application.
type c can access all web pages in my website
all the users are coming from database.
how to perform this in asp.net?

Pranay RanaPosted May 13, 2015, 1:25 AM
UserRole table
ID Role
1 Admin
2 User
User table need to have role columns
ID RoleID Name Add
1 1 ABC ZYZ
2 1 ABC1 XYZ
3 2 CDE AXY
page table
ID Page
1 PAge1
2 Page 2
PAgeRole Table
PageID RoleId
1 1
1 2
Than you need to have method in your master or base page which takes current user role and check in PageRole table that user having access or not.