PC Review


Reply
Thread Tools Rate Thread

CreateUserWizard issue

 
 
LRuss
Guest
Posts: n/a
 
      16th Jan 2008
I’ve customized the CreateUserWizard by adding Steps and customizing the
Create User Step. I find that if I programmatically assign a value to either
the default UserName or Email
Textbox Text property, say on the ActiveStepChanged event or the
NextButtonClick, when the Complete step transitions to the Continue
destination it fails to automatically login the user (i.e. my LoginView and
LoginStatus controls remain in their Anonymous state).

My Wizard’s LoginCreatedUser property is True. The user is successfully
registered in the database.

I’ve found that adding the following fixes the problem
protected void CreateUserWizard1_ContinueButtonClick(object sender,
EventArgs e)
{
TextBox UserName =
(TextBox)CreateUserAcct.ContentTemplateContainer.FindControl("UserName");
FormsAuthentication.RedirectFromLoginPage(UserName.Text, false);
}

If I remove the code assigning the values to the UserName and/or Email
textboxes (on the CreateUserStep), the user is properly logged in on the
transition.

Any ideas?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CreateUserWizard Neil B Microsoft C# .NET 0 25th Jun 2008 05:50 PM
CreateUserWizard Jon Paal Microsoft ASP .NET 0 11th Jan 2007 09:56 PM
CreateUserWizard arun@greettech.com Microsoft ASP .NET 0 28th Dec 2006 12:53 PM
CreateUserWizard arun@greettech.com Microsoft ASP .NET 0 28th Dec 2006 12:53 PM
asp:CreateUserWizard BobLaughland Microsoft ASP .NET 1 22nd Feb 2006 08:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:46 AM.