473,698 Members | 2,022 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Membership question - Using a 'sub-user'

I am using the built in ASP.NET membership provider.

All files in the 'members' subfolder is only accessible by those in role
'member'.

I want a user to be able to create 'sub-user' accounts. The sub-user would
be able to do things 'on behalf' of the primary user.

My relational db is setup to cascade delete all related data records
whenever a user is deleted. But, for sub-users, I don't want to enforce
this (because sub-users (ie employees) can come and go.)

SCENARIO
- Employer user 'Bob' can create projects, using the webform in the
'members' subfolder
- Employer creates 3 sub-users (temporary employees) - They can create
projects on behalf of 'Bob' (using the same webform in the 'members'
subfolder)
- Employer can delete sub-user #2 if he wants to, but the proejcts do not
get deleted

QUESTION
Is there a way to create a seperate table altogether for these sub-user
logins? Then sign them in with a 'member' permissions? Any suggestions on
how to implement an idea like this?

Hope that makes sense.

Thanks.
Nov 14 '08 #1
1 1708

"Bobby Edward" <bo***@nobody.c omwrote in message
news:Ol******** ******@TK2MSFTN GP04.phx.gbl...
>
QUESTION
Is there a way to create a seperate table altogether for these sub-user
logins? Then sign them in with a 'member' permissions? Any suggestions
on how to implement an idea like this?
Your best bet is a custom membership provider:
http://www.devx.com/asp/Article/29256
--
Gregory A. Beamer
MVP: MCP: +I, SE, SD, DBA

Blog:
http://feeds.feedburner.com/GregoryBeamer

*************** *************** **************
| Think Outside the Box! |
*************** *************** **************

Nov 15 '08 #2

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

Similar topics

5
2034
by: Vishal Gupta | last post by:
Hi This is Vishal this side.I have been trying to create a new sample website using the new Membership Provider Class. Now when I try to a create a new website and then hit on the Website Administrator Tool and then hit on Security I get this error "There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can
3
2309
by: jan82 | last post by:
Hi all I'm developing a website with Visual web developer in C#. Everything works fine when testing using ctrl+F5. Also, IIS runs ASP.NET pages without any problems. The problem I'm facing now is that standard ASP.NET membership is not working when not using the visual studio testing webserver. I just get the message that logging in has failed. Any suggestions?
4
1229
by: Scatir | last post by:
Hi, I have a membership problem I couldn't resolve. I have set up membership as most of tutorial instructed, and I am able to log on, but cannot stay log on for some reason. ex: when I log on, the log in become log on, but when I access the protected page, it still prompt me for log in. Please help!
4
7227
by: thomas | last post by:
Hello All, How to change the default Membership Provider during the runtime? I know I can reference any provider I want, e.g.: provider = Membership.Providers but the question is how to change the default one, so all those new, cool controls can start using the one I want. I can specify the provider for each of those controls, e.g.:
0
1625
by: PinkBishop | last post by:
Question regarding the ASP.NET 2.O Membership / Role component The following works fine on local machine and networked dev box. ASP.NET Membership protecting files and folders. I am trying to run the Membership component. I have loaded to production where host is running Win2k Server, IIS 5, ASP.NET 2.0, SQL Express
2
5901
by: Brandon Holliday | last post by:
Hello, I have a problem that I need some help on. I am creating a website that utilizes the builtin membership functionality in Asp.net 2.0. By default, the "AspNetSqlProvider" is used and the membership data is stored in "AspNetDB.mdf". However, instead of using this mdf file, I would like to store the membership data in Sql Server, using the "SqlMembershipProvider". I have already run the "regsql.exe" file, but I'm not sure of...
0
1184
by: drjack | last post by:
Recently I developed a website using asp.net and SQL Express. The database file is uploaded into App_Data folder. The website is using two membership providers, one is SqlMemership provider with default name AspNet…. With such configuration: <membership> <providers> <clear/> <add connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true"...
1
2375
by: =?Utf-8?B?ZVByaW50?= | last post by:
Asp.Net v2.0 I have created a web application and I am using it from a single website and database. The web application has different ‘portals’ – each independent and I am using the Membership & Roles ApplicationName to separate out my different groups of users within the membership database. I had been having problems with ‘random’ bugs - as though my Membership database was 'sharing' information between users and...
1
3005
by: =?Utf-8?B?ZVByaW50?= | last post by:
Asp.Net v2.0 I have created a web application and I am using it from a single website and database. The web application has different ‘portals’ – each independent and I am using the Membership & Roles ApplicationName to separate out my different groups of users within the membership database. I had been having problems with ‘random’ bugs - as though my Membership database was 'sharing' information between users and...
0
1636
by: myth0s | last post by:
Hi, The question: Is it possible to have two differents ActiveDirectory Membership Provider in web.config and change at run-time from the default provider to the second provider if the first one fail? Context: We are using the ActiveDirectory Membership Provider as part of our authentication solution. It is working great most of the time, but every now and then the AD process on the main server fail. With Windows this is not a...
0
8674
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8603
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9157
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9027
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7725
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4369
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3046
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.