How to assign roles to users
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
The following is my Web.config file
<location path="admin"> <system.web> <authorization> <allow roles="Admin" /> <deny users="*" /> </authorization> </system.web> </location>
But in FormsAuthentications mechanism,I can't find how to and when to assign "Admin" role to Authenticate users. Can anyone help me? Any idea will be appropriate. -
The following is my Web.config file
<location path="admin"> <system.web> <authorization> <allow roles="Admin" /> <deny users="*" /> </authorization> </system.web> </location>
But in FormsAuthentications mechanism,I can't find how to and when to assign "Admin" role to Authenticate users. Can anyone help me? Any idea will be appropriate.