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

Adding user to role in ASP.Net 2

Hi,

I'm just getting into asp.net 2 c# using the login and registration
controls. I have a role called publisher and want the user adding to
that role when they register and send an email to say they have
registered.

Do I just add the code to create the role in the
CreateUserWizard_CreatedUser method? Is there a better way?

Thanks.

Thanks.

Jan 11 '06 #1
2 1418

Spondishy wrote:
Hi,

I'm just getting into asp.net 2 c# using the login and registration
controls. I have a role called publisher and want the user adding to
that role when they register and send an email to say they have
registered.

Do I just add the code to create the role in the
CreateUserWizard_CreatedUser method? Is there a better way?

Thanks.

Thanks


Anyone have any idea on this?

Jan 12 '06 #2
I've got to delve into this myself, meanwhile this article [1] may help you
out...

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/

[1] http://fredrik.nsquared2.com/viewpost.aspx?PostID=131

"Spondishy" <sp*******@tiscali.co.uk> wrote in message
news:11*********************@g43g2000cwa.googlegro ups.com...

Spondishy wrote:
Hi,

I'm just getting into asp.net 2 c# using the login and registration
controls. I have a role called publisher and want the user adding to
that role when they register and send an email to say they have
registered.

Do I just add the code to create the role in the
CreateUserWizard_CreatedUser method? Is there a better way?

Thanks.

Thanks


Anyone have any idea on this?

Jan 12 '06 #3

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

Similar topics

0
by: leecho | last post by:
Hi, I confuse. I had a role named lsc_role with certain object privs. if i run this query : select role from dba_role; ROLE ----------------------- JAVADEBUGPRIV EJBCLIENT JAVA_ADMIN
1
by: sailesh | last post by:
I dropped a login from securities list. and when i try to re add that login and give the user access to a particular database the error message "Error 15023: User or role "user" already exists in...
1
by: microsoft.public.dotnet.languages.vb | last post by:
Hi All, I am having a serious problem of removing and adding again an user in a database. Microsoft SQL Server 2000 - 8.00.760 (Intel X86) Dec 17 2002 14:22:05 Copyright (c) 1988-2003...
3
by: Catherine Jo Morgan | last post by:
I have TblRoles and TblRoleTypes. The main reason for RoleTypes is to make it easier to categorize roles for people and organizations. For example, RoleType entries include Client roles, Climb...
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...
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...
3
by: shapper | last post by:
Hello, How to I check if a user is authenticated and if it is what is its role? I am using Asp.Net 2.0 and forms authentication. Thanks, Miguel
8
by: | last post by:
I'm looking for some design guidance on a collection of projects I'm working on. The project involves a bunch of websites constructed out of a collection of user controls. Different user...
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
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.