Show Hide Button based on user Role in ASP.Net

Last Reply 2 months ago By Andrea

Posted 2 months ago

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.

Posted 2 months ago
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.