473,324 Members | 2,400 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,324 software developers and data experts.

createuser control

Can the CreateUserWizard control be used by an administrator, e.g. someone
setting up membership users but not the end user?

Thanks.
Aug 6 '06 #1
2 1280
Dabbler,
The CreateUser wizard can be used by anyone that you decide you want to be
allowed to see it (by setting its 'visible' property for example).
If you only want Administrators to be able to use it, you would use an if /
block that checks if the User's role is Administrator, and make its visible
property "true".
Peter

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


"Dabbler" wrote:
Can the CreateUserWizard control be used by an administrator, e.g. someone
setting up membership users but not the end user?

Thanks.

Aug 6 '06 #2
It can also be controlled by roles. ie only let users on the admin role
access the createuser.aspx page and thus control who can create users.

i am trying to implement a similar use and the change that found
particularily helpful was to set 'LoginCreatedUser' parameter from true
to false. By default the wizard logs in as the newly created user,
which isn't the way you'd want an admin to have to create multiple new
users.

I am having trouble though specifying how to update the profile of a
specific user. By default the Profile class affects the currently
logged in user, but if i want to specify the profile that i want to
change by username i can't (haven't found a way). This came about as
the admin creates a new user and wants to add settings to their
profile. By default the profile settings are added to the admin's own
profile.

i tried profileCommon = profile.getProfile(createuserwizard.username),

but how do i set changes to this profile?

not trying to hijack the thread, just thought it was on the same topic.

RD
Peter wrote:
Dabbler,
The CreateUser wizard can be used by anyone that you decide you want to be
allowed to see it (by setting its 'visible' property for example).
If you only want Administrators to be able to use it, you would use an if /
block that checks if the User's role is Administrator, and make its visible
property "true".
Peter

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


"Dabbler" wrote:
Can the CreateUserWizard control be used by an administrator, e.g. someone
setting up membership users but not the end user?

Thanks.
Aug 7 '06 #3

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

Similar topics

4
by: ezra epstein | last post by:
I've got a user with CREATEUSER privs. I've not granted that user and DB specific privs but it can do what it will with non-public schemas... Is there a user that can do SET SESSION AUTHORIZATION...
4
by: MLH | last post by:
A97: If I create a new user with CreateUser Method, is she automatically a member of Users group? Or, do I have to append her to that group?
0
by: Portman | last post by:
I've used the Membership classes in an ASP.NET 2.0 application to create an application that interfaces with an older SQL Server 2000 database. Everything is working except the following... Like...
3
by: VB Programmer | last post by:
I am getting this error: error BC30456: 'CreateUser' is not a member of 'Membership'. What does that mean? Here's my code. It seems correct (no squigglies, etc...) ' store it in db Dim...
0
by: Fossie | last post by:
Hi, I need to check that someone signing up is listed in an xml file. I am using a customer membership provider for Access and trying to integrate the xml check into that. Am I on the right track?...
1
by: John | last post by:
Hi I am using the membership createuser method but need to find the error when one arise. I am using the below code; Public Function CreateUser(ByVal Username As String, ByVal Password As...
1
by: JJ | last post by:
How can you set the IsApproved flag to false for all new registrations? I am using the createUser wizard to setup my user registration page. Thanks in advance, JJ
1
by: mazdotnet | last post by:
Hi, I like to grab the user id of the currently added user. However, I can't find a property that would do it. MembershipUser newUser = Membership.CreateUser(tbxUsername.Text,...
1
by: Alan | last post by:
Hi Expert, Dim u As MembershipUser = Membership.CreateUser("jfewfewa801", "r09gtrez30@") Above statement return "The E-mail supplied is invalid." until I set requiresUniqueEmail="false" in...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.