Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 27th, 2006, 02:58 PM
Friend of Wrox
Join Date: Jul 2006
Posts: 238
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to rsearing
Default CreateUserWizard Complete Step

I am actually creating a site where an admin can use the createUserWizard to create users via the web app, rather than having to go through the wizard in VS 2005.

The problem is that as I go through the wizard and create a user, on the complete step it actually tries to login with that account that I am creating.

How can I override the last step to simply just alert me that it was created successfully and allow me to remain logged in as an admin and just refresh the userlogin page I created?

Thanks, in advance,

Actually--Imar pointed out a property called LoginCreatedUser that can be set to false..but I don't know where to put that..Also, I would like to re-direct (upon completion) to the createuser.aspx page that I created..I am not sure of the code that I would type. I would assume I would put this code on the "complete" button click event?
Old December 27th, 2006, 04:38 PM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Hi Rob,

Just set LoginCreatedUser to false, like this:
<asp:CreateUserWizard ID="CreateUserWizard1" runat="server" LoginCreatedUser="False">
    <asp:CreateUserWizardStep runat="server">
    <asp:CompleteWizardStep runat="server">
In addition to that you can handle the CreatedUser event and, for example, redirect away:
Protected Sub CreateUserWizard1_CreatedUser(ByVal sender As Object, _
      ByVal e As System.EventArgs) Handles CreateUserWizard1.CreatedUser
End Sub
Hope this helps,

Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.

Similar Threads
Thread Thread Starter Forum Replies Last Post
need a step by step book angelica ASP.NET 3.5 Basics 5 October 31st, 2008 05:06 AM
AjaxMAIL Step by Step waffa BOOK: Professional Ajax ISBN: 978-0-471-77778-6 3 September 25th, 2006 02:12 PM
CreateUserWizard problem with custom step danblack101 ASP.NET 2.0 Professional 0 July 12th, 2006 01:09 AM
We Based Database Step By step desireemm SQL Language 1 October 15th, 2005 08:15 PM
Step by step installation peter_budo Beginning PHP 0 August 31st, 2004 12:04 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.