Last post Mar 04, 2015 12:15 AM by vjnithin
Mar 02, 2015 01:13 AM|vjnithin|LINK
I want to implement Access Rules by using ASP.NET Role Providers in my Application. How do i do this? There nothing available for defining the Access Rules.
I dont know where to start.im new to membership role provider in asp.net.
Mar 02, 2015 09:42 PM|markfitzme|LINK
Are you looking for granular permissions? The membership system uses Role-based permissions, which means the role is as granular as you get with the provider without rolling your own mechanism to do more granular permissions, either role-based or otherwise.
You can limit pages/directories to specific roles using the authorization section of the web.config and allow/deny users or roles there. You can also check if users are in roles in code using IsUserInRole from http://forums.asp.net/post/set/25/2038003/5870486
to set control states based on whether or not a user is in different roles.
Mar 03, 2015 01:33 AM|Summer - MSFT|LINK
There is a vedio that will introduct you the ASP.NET Membership System Access Roles and permissions detailly.
Or this article about Managing Forms Authentication Access Rules programmatically.
Regards & Summer
Mar 04, 2015 12:15 AM|vjnithin|LINK