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

Probably Simple Roles Issue

Hello,

I have an issue with the CreateUserWizard Control. I am trying to
once the user is successfully created add them to a default role. So
crazy me to think that I would leverage the createdUser event and then
Roles.addUser....

well it ran user was added to the database but no role has been added
for the user. There is also no errors or nothing in the logs that say
it failed.

Any Ideas??

Tim
Aug 20 '08 #1
1 879
Yes, crazy you :-) working bass ackwards. You should learn and use the
LoginView control to manage what content the user can or cannot access on
the page or the Membership class to keep them out of the page itself. There
are a couple of 3rd party Membership controls, documents and blogs about
developing our own including commentary from Microsoft and of course the
Website Administration Tool.
"GinnTech" <Ti***********@gmail.comwrote in message
news:52**********************************@s50g2000 hsb.googlegroups.com...
Hello,

I have an issue with the CreateUserWizard Control. I am trying to
once the user is successfully created add them to a default role. So
crazy me to think that I would leverage the createdUser event and then
Roles.addUser....

well it ran user was added to the database but no role has been added
for the user. There is also no errors or nothing in the logs that say
it failed.

Any Ideas??

Tim
Aug 20 '08 #2

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

Similar topics

4
by: Arjen | last post by:
What does this mean? 'Roles' does not contain a definition for 'RoleExists' I'm doing this: using System.Web.Security; Roles.DeleteRole(txtRolename.Text.Trim()); I don't see what's wrong. ...
0
by: p | last post by:
I am wirting an applications where I use Roles. My roles are held in an SQL Table where the fields are simply RolID and RoleName. I am writing the Application in ASP.NET. I assign the roles to...
5
by: Newbie | last post by:
Hi all, Just want to comment on this thread. Seems like every discussion about this matter (setting up DB provider for membership) and all the samples/references given by some MVPs always...
1
by: Newbie | last post by:
Hi all, Just want to comment on this thread. Seems like every discussion about this matter (setting up DB provider for membership) and all the samples/references given by some MVPs always...
9
by: Mike Hofer | last post by:
BACKGROUND: We've designed a Website for a client that will be deployed across multiple physical locations. The site will be hosted from a corporate NOC, and administered by the IT group there. ...
1
by: jesibl | last post by:
Hi All, I have an ASP .NET 2.0 web based app which should change content based on a variable passed in the query string. Let's say the variable is called ID and the variations are A, B and C. ...
1
by: shapper | last post by:
Hello, I have various roles on an Asp.Net 2.0 web site. Two of the rows are Administrator and Collaborator. The Administrator role has higher access level than the Collaborator. However,...
0
by: Douglas J. Badin | last post by:
Hi, The problem with Authorization is it stops at the first match and doesn't permit Grouping. On the Web Site, I am trying to Secure Page Access and SiteNaviagation by implementing the...
0
by: sidhuasp | last post by:
Hi everyone I am using a mainmenu witeh sitemap provider with folowing sitemap <siteMapNode> <siteMapNode url="" title="Master Data" description="Enter Master data" roles ="Admin,PM"> ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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
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
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
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...

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.