473,397 Members | 1,960 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,397 software developers and data experts.

Role management in ASP.NET 2.0

I'd like to take advantage of the role management classes in 2.0 to allow my
users to give other users access to their data. For this reason I'd like to
create new roles on-the-fly without having to hard-code them in web.config.

Can I do this by calling Roles.CreateRole?

If yes, how does this wok together with roles defined in web.config?

If no, how can I accomplish the above functionality?

Thanks a'bunch!
Feb 24 '06 #1
1 1516
Bevo,
You are not required to use web.config as the sole place to define roles.
ASP.NET 2.0 supports the Membership and Role provider classes. There is a
built-in implementation of the SqlMembershipProvider and SqlRoleProvider
classes that are designed to work with SQL Server, and there are base classes
from which you can derive your own custom Membership and Role providers.

In this manner, you can create custom roles "on the fly" by adding them to
the appropriate Database tables.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Bevo" wrote:
I'd like to take advantage of the role management classes in 2.0 to allow my
users to give other users access to their data. For this reason I'd like to
create new roles on-the-fly without having to hard-code them in web.config.

Can I do this by calling Roles.CreateRole?

If yes, how does this wok together with roles defined in web.config?

If no, how can I accomplish the above functionality?

Thanks a'bunch!

Feb 24 '06 #2

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

Similar topics

0
by: Chris | last post by:
Hi, Regarding : Role based Security Scenario : On W2K, I'm currently logged in as 'user1' Checking the properties of the user account 'user1' : --> Start/Programs/Administrative...
1
by: Hennie | last post by:
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...
1
by: Philipp Lenz | last post by:
I'm completely new to ASP.Net 2.0 and I'm baffled about what to do to get this to work. FYI, I'm not new at this, I've used asp.net 1.1 for allmost 4 years now. I'm running a development...
1
by: jobi joy | last post by:
Hi, Has new ASP.NET contains all the features of IBM Tivoli Access Manager for Role/Membership management? Please give an insight on this. regards jobi
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...
0
by: Serdar KALAYCI | last post by:
I'm planning to apply Role Management feature to my new web site but I have some doubts which I thought you can help. The membership/role management system works like a charm on development...
1
by: JohnC | last post by:
I'm in the concept stage of putting together a web application. Certain featues will be available only if the person has been given access. This is based on their particular subscription. I can...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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,...

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.