Get role from AspNetSqlProvider ASP.Net 2.0

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Ho can I get the role of the user in a ASP.net 2.0 web application?
I am using AspNetSqlProvider to manage my membership. I can get the user by
using User.Identity.Name. What will the command be to get the Role?
I am using VB

Thank you
 
Hi,

ASP.NET version 2.0 provides a new role manager feature that includes a
roles management API that allows you create and delete roles and add and
remove users. The role manager stores its data in an underlying data store
that it accesses through an appropriate role provider for that data store.
Supplied role providers include:

SqlRoleProvider.
===========
This is used where the role store is kept in SQL Server.

WindowsTokenRoleProvider.
==================
This is a read-only provider that retrieves role information for a Windows
user account based on the account's Windows security group membership. You
cannot create, add to, or delete roles with this provider.

AuthorizationStoreRoleProvider.
====================
This is used if your application uses Authorization Manager (AzMan). It
uses an AzMan policy store in an XML file, in Active Directory, or in Active
Directory Application Mode (ADAM) as its role store. It is typically used in
an intranet or extranet scenario where Windows authentication and Active
Directory is used for authentication.

How To: Use Role Manager in ASP.NET 2.0
============================
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/paght000013.asp

bye
Venkat_KL
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top