pointeman
asked on
Roles.IsUserInRole Multiple Roles?
I'm currently using this for multiple Roles page login:
if (User.IsInRole("Administra tors") | User.IsInRole("managers"))
I would like to use a shorter code like so, but not sure if its possible.
if (Roles.IsUserInRole("Admin istrators, managers"))
--or--
if (Roles.IsUserInRole("Admin istrators" , "managers"))
I like using as little code as possible, when possible...
Thanks before hand..
if (User.IsInRole("Administra
I would like to use a shorter code like so, but not sure if its possible.
if (Roles.IsUserInRole("Admin
--or--
if (Roles.IsUserInRole("Admin
I like using as little code as possible, when possible...
Thanks before hand..
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.