1) To use ASP.Net Permission Manager you have to set up ASP.Net Role Management and ASP.Net Membership Managment
All informations here :
http://msdn.microsoft.com/en-us/library/91f66yxt(v=VS.90).aspx

2) After download the last release of ASP.Net Permission Manager, you have to run the script CreateDataBase.sql on your database.

3) Create permissions in table malPermissions and make relation between permissions and roles in table malPermissionsInRole

4) You have include Mal.Web.Security.dll in your project

5) Configure the provider in the method Application_Strat in the Global.asax :
Permissions.Provider = new SqlPermissionProvider("ApplicationName"
, ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);


6) Test if the use have permission in your code :
if (Permissions.UserHasPermission("permissionName"))
{
    ...
}

Last edited Apr 20, 2010 at 5:46 AM by malbaladejo, version 3

Comments

No comments yet.