Print Page | Close Window

Role provider

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2681
Printed Date: 16-Apr-2024 at 1:57am


Topic: Role provider
Posted By: Alpha8
Subject: Role provider
Date Posted: 17-May-2011 at 4:18am
Hello

I would like to write a role admin tool in Silverlight, using the membership role provider. how can I get acces to all roles on using devorce, so i can list the roles and add new one, and add and remove users to/from roles like in asp.net.

Roles.CreateRole("Admins")
and
Roles.AddUserToRole("domain\me""Admins")

Anyone knows an example?

Thanks



Replies:
Posted By: robertg
Date Posted: 17-May-2011 at 11:34am
Alpha, are you using DevForce 2009 or DevForce 2010?


Posted By: Alpha8
Date Posted: 17-May-2011 at 12:07pm

I use Devforce 2010, and use Silverlight 4, sorry i posted in the wrong section.

thank
heinz


Posted By: robertg
Date Posted: 17-May-2011 at 12:25pm
No problem, it's easy enough to move the topic to the right place. I Just wanted to make sure we were giving you the correct information!
 
Have you looked at the sample for this, at http://drc.ideablade.com/xwiki/bin/view/Documentation/code-sample-aspnet-membership-roles - http://drc.ideablade.com/xwiki/bin/view/Documentation/code-sample-aspnet-membership-roles  ?



Print Page | Close Window