c# - Filter gridview according to user and its role - in .net 4 web appication -
i developing web site show grid view customers in left side. show customers db. user can click on customer show details.
the customers , customers details taking sql db has tables customers , table of customersdata.
i manage web site users roles using built in functionality of microsoft. created users role administrator , user role manager.
i want manager see customers , not other manager's customers.
i guess need associate customers managerid. but how do ? users roles not in db, in microsoft. customers table, managerid have have take microsoft db. there must way.
appreciate ideas. thanks
you can "userid" "aspnet_users" table based on "username". suggest add field customers table hold id. can query customers id of logged on user.
Comments
Post a Comment