Wrox Programmer Forums
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 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 Professional 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 June 22nd, 2006, 07:22 AM
Authorized User
Join Date: Jul 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Wizard Step

I seem to having difficulty with Chapter 6 (6-18 : 6-19)
ive modified it to fit to what i need it for.
I want my users to enter a pin before they can complete creating account, if they enter the pin incorrect then i want them to go no futher, but at the mo it allows them to move onto the next step:


<asp:CreateUserWizard ID="CreateUserWizard1" runat="server" OnNextButtonClick="CreateUserWizard1_NextButtonCli ck">
            <asp:CreateUserWizardStep runat="server">
            <asp:WizardStep runat="server" Title="VerifyPin">
                <asp:TextBox ID="TextBox1" runat="server" Width="92px"></asp:TextBox>
                <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
            <asp:WizardStep runat="server" Title="justlooking">
            <asp:CompleteWizardStep runat="server">

Code (aspx.cs)

protected void CreateUserWizard1_NextButtonClick(object sender, WizardNavigationEventArgs e)

        if (e.NextStepIndex == 1)
            if (TextBox1.Text == "123456")
                CreateUserWizard1.ActiveStepIndex = 2;


                Label1.Text = "Incorrect";
                CreateUserWizard1.ActiveStepIndex = 0;

please help!!

Old June 22nd, 2006, 08:25 AM
Authorized User
Join Date: Jul 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts

Opps sorted it

should be

if (e.NextStepIndex == 2)

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
Wizard Finish Step Approach AspNetGuy ASP.NET 3.5 Basics 0 June 17th, 2008 05:15 PM
user controls not sustaining on a wizard step!! kaliaparijat ASP.NET 2.0 Professional 1 June 6th, 2008 12:41 PM
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.