tags:

views:

138

answers:

3

Hi All

There is Role Management feature in ASP.NET It works on local development machine.

For our project we need customers admin to be able to create new users and manage their roles. So, basically same what aspnet_regsql.exe does.

Question is Should we develop our own pages and forms or use some ready made tool?

Thanks!

A: 

Here is a guide with code to doing the role manager UI: MSDN article.

Have you seen this Web Admin tool?

It looks like this: alt text

Nix
Thanks, of course i've seen that!But "To access the Web Site Administration Tool, on the Website menu, click ASP.Net Configuration."But this button is only available in VS.Question is how to get the same menu when the site/project is up and running. So that client can add users / manage roles after development is over.Will the same tool still be available, or should we write our own?
Alex
A: 

Sounds like you need the SqlRoleProvider.

You can also plug in your own custom Role Provider (and Membership Provider). See How to: Sample Role-Provider Implementation

James Westgate
How was this the answer to the question?
ntziolis
A: 

So that client can add users / manage roles after development is over.

Alex, I had exactly this problem on an application a couple of years ago and I found and adapted this sample:

Microsoft ASP.NET 2.0 Member/Role Management with IIS, Part 2: Implementation

There was a slight bug in the ToggleInRole_Click method that I had to tweak (I can give you my fix if you want) but apart from that it worked well.

Kevin McFarlane