473,657 Members | 2,572 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with CreateUserWizar d

Guy
I'm using a CreateUserWizar d with an extra WizardStep. My code is based on
this http://msdn2.microsoft.com/en-us/library/ms178342.aspx code.
When the method "protected void CreateUserWizar d1_CreatedUser( ...)" executes,
using the debugger I can see all entered values (CreateUserWiza rd1.Password,
CreateUserWizar d1.Email EXCEPT CreateUserWizar d1.UserName is "",
however this UserName was of course entered. I don't know what happens. Find
hereafter the code snippet for this method:

protected void CreateUserWizar d1_CreatedUser( object sender, EventArgs e)
{
// Determine the checkbox values.
CheckBox subscribeCheckB ox =
(CheckBox)Creat eUserWizard1.Cr eateUserStep.Co ntentTemplateCo ntainer.FindCon trol("Subscribe CheckBox");
CheckBox shareInfoCheckB ox =
(CheckBox)Creat eUserWizard1.Cr eateUserStep.Co ntentTemplateCo ntainer.FindCon trol("ShareInfo CheckBox");

// The following line doesn't give the entered UserName value,
// however this was correct entered!
MembershipUser user = Membership.GetU ser(CreateUserW izard1.UserName );

user.Comment = "Subscribe= " + subscribeCheckB ox.Checked.ToSt ring() +
"&" +
"ShareInfo= " + shareInfoCheckB ox.Checked.ToSt ring();
Membership.Upda teUser(user);

// Show or hide the labels based on the checkbox values.
Label subscribeLabel =

(Label)CreateUs erWizard1.Compl eteStep.Content TemplateContain er.FindControl( "SubscribeLabel ");
Label shareInfoLabel =

(Label)CreateUs erWizard1.Compl eteStep.Content TemplateContain er.FindControl( "ShareInfoLabel ");

subscribeLabel. Visible = subscribeCheckB ox.Checked;
shareInfoLabel. Visible = shareInfoCheckB ox.Checked;
}

Anyone suggestions what goes wrong here, i'm completely lost on this.

Thanks
Mar 9 '06 #1
0 879

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

Similar topics

1
5235
by: Raventhorn | last post by:
I am trying, as I can see many are, to avoid the CreateUserWizard's CreateUser step from creating the user until I am ready to do it. I have a rather complex registration because I have various different types of registration, one for organizations (in which they provide alot of profile data on their organization) and individuals. I would like to share the CreateUser page of the CreateUserWizard but not allow it to create the actual user....
2
3550
by: John | last post by:
Hi I was working fine with create user wizard and the default membership provider. I have now customised the membership provider as per attached web.config. The create user wizard picks up the custom membership provider fine and removes the security question/answer fields as designated in the custom provider. The problem is that when I try to create a new user in the create user wizard by entering the info and pressing the 'create...
3
1976
by: Ben R. | last post by:
Seems like CreateUserWizard flat out ignores StartNavigationTemplate. Not sure why the designer bothers to offer for you to edit it, but even when you specifiy this, it doesn't seem to be used. Is this simply inherited from Wizard? Seems the only Navigation that this step will pay attention to is a CustomNavigationTemplate. Does this step simply not fall under the category of StartNavigationTemplate? -Ben
2
2249
by: Learner | last post by:
Hello, I have defined another textbox control in the CreateUserWizard control and this is how I am trying to get the value of it in the code behind page is below im myStep As CreateUserWizardStep = New CreateUserWizardStep Dim DealerShipIDvalue As TextBox = myStep.ContentTemplateContainer.FindControl("_txtDealerShipID") Dim dealer As String dealer = Server.HtmlEncode(DealerShipIDvalue.Text)
2
4323
by: guoqi zheng | last post by:
Dear sir, I am using the createUserWizard of ASP.NET 2.0. I am trying to add two extra fields to it. FirstName and LastName. However I did not find out how can get the value out of this two addtional fields? I tried Dim ctlFirstName As TextBox = CType(CreateUserWizard1. FindControl("txtFirstName"), TextBox)
0
1618
by: Nehpets | last post by:
I'm trying to setup a web site that uses active directory for user authentication under asp.net 2.0. For testing, I have separately installed two virtual servers. The first is a domain controller in a new forest named VSERVER00 running Windows Server 2003 R2 Standard. The second is an application server running IIS in the same domain, named VSERVER01 also running Windows Server 2003 R2 Standard. The domain is VDOMAIN.local. I have...
1
2795
by: Pedro Mir | last post by:
Hi! I am only asking for username, mail, password and security question in my CreateUserWizard control with the LoginCreatedUser=false. I am doing this because I amd sending an email for email address confirmation. The question is, How can I assign or init values to the rest of Profile properties when the user is created? have have some example?
0
2014
by: Avi | last post by:
A CreateUserWizard contorl receives new user details, adds the user to the database, tries to send a confirmation mail message and stops with a "System.FormatException: The specified string is not in the form required for an e-mail address." Any ideas? --------------------------------------------------------- The CreateUserWizard contorl's code:
1
2207
by: staeri | last post by:
Hello! It looks like the newly registered user is logged in after the CompleteWizardStep in CreateUserWizard is finished. I would like to logout the user when that step appears. How can I do that? Regards,
3
2588
by: Ken Fine | last post by:
I am using ASP.NET's CreateUserWizard control. I want to force the visitor to use a username and e-mail address that I am providing in programming, and I do not want the visitor to be able to edit the forms input. I am aware that I can roll my own Create User form by using the membership API, but I am lazy and want to use most of the CreateUserWizard control's features. I tried converting the form to a template and setting the UserName...
0
8425
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
8326
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
8743
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
8622
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7355
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...
1
6177
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5647
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
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...
1
2745
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

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.