Hello,
I'm using webforms and I'm trying to add users to roles using the following code:
- Roles.AddUserToRole(userTxt.Text, roleTxt.Text);
So, I added these lines to web.config of the Admin role
- "1.0"?>
-
-
- enabled="true"
- cacheRolesInCookie="true" >
-
-
"Administrator" /> -
"*" />
I would appreciate any kind of help, thank you in advance.
DealyPosted Aug 5, 2016, 1:50 AM
Suthish NairPosted Aug 4, 2016, 8:17 AM