473,405 Members | 2,338 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Get role from AspNetSqlProvider ASP.Net 2.0

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
Nov 19 '05 #1
1 1594
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/de...aght000013.asp

bye
Venkat_KL
Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: tracy | last post by:
hi, just wonder, can we copy a role then add some new priviledges to the new role. hm.. i means, example; now i have a role named role_a. Then I copy role_a to create role_b. After I created...
3
by: craig | last post by:
I am working on my first .NET development project that involves custom role-based security per the project requirements. This lead to a general design issue this week that really caused us some...
2
by: Jesper Stocholm | last post by:
I have implemented role-based security within my ASP.Net application. However, it seems the role is not passed to the authentication ticket I create. I want to use it to display/hide some...
0
by: John | last post by:
Hi This is my first time doing this. I have a typical sql server and vs2005/sql express 2005 installation on C: drive. I have attached the web config file that I am using. I have the...
0
by: Bruno | last post by:
VS.net installs sql express as datastore for role/membership management. I don't like this! I'm not able to choose other databases like ms-access, in the Web Site Administration Tool . (Only...
4
by: Bruno | last post by:
Hello, VS.net installs sql express as datastore for role/membership management. I don't like this! I'm not able to choose other databases like ms-access, in the Web Site Administration Tool ....
8
by: Mark White | last post by:
Hey everyone I'm having a great deal of problems finding this information through google and yahoo, so I turn to you on this. I have a Windows app running on XP. I am able to caputre the...
4
by: cybertoast | last post by:
i seem to have some misunderstanding about how roles work in sql server 2005. i see that i can add a role to a database (dbname->->properties->permissions->. THis allows me to add either users or...
2
by: Anthony Smith | last post by:
I have a user object that is set when a user logs in. There are also permissions that I get about the user from a web service. Currently I take the results from those web services and store them as...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.