Show Hide Button based on user Role in ASP.Net

masterTP4
 
on Nov 08, 2018 03:58 AM
2877 Views

i want to allow users see buttons based on roles of the users, example if i have 5 roles 1, 2, 3, 4, 5

then users

garry

larry

bincool

benbruce

katemail

 

then i allowate 1 role to garry

then 2 role to larry

3 role to bincool

then 4 role to benbruce

5 role to katemail

 

if garry login he will only see button sales 1

if role 2 login the user will only see button sales 2

etc.

Download FREE API for Word, Excel and PDF in ASP.Net: Download
Andrea
 
on Nov 08, 2018 03:58 AM
Hi @masterTP4,
Please try the following

Show Hide Button based on user Role using C# and VB.Net in ASP.Net

It might help you.

Cheers Andrea.