Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old June 22nd, 2006, 08:22 AM
Authorized User
 
Join Date: Jul 2003
Location: , , .
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:

Code(.aspx)

<asp:CreateUserWizard ID="CreateUserWizard1" runat="server" OnNextButtonClick="CreateUserWizard1_NextButtonCli ck">
        <WizardSteps>
            <asp:CreateUserWizardStep runat="server">
            </asp:CreateUserWizardStep>
            <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>
            <asp:WizardStep runat="server" Title="justlooking">
            </asp:WizardStep>
            <asp:CompleteWizardStep runat="server">
            </asp:CompleteWizardStep>
        </WizardSteps>
    </asp:CreateUserWizard>
</asp:Content>

Code (aspx.cs)

protected void CreateUserWizard1_NextButtonClick(object sender, WizardNavigationEventArgs e)
    {

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


            }

            else
            {
                Label1.Text = "Incorrect";
                CreateUserWizard1.ActiveStepIndex = 0;
            }
        }

please help!!

  #2 (permalink)  
Old June 22nd, 2006, 09:25 AM
Authorized User
 
Join Date: Jul 2003
Location: , , .
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Opps sorted it

should be

if (e.NextStepIndex == 2)
        {.....


 


Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 06:06 AM
Wizard Finish Step Approach AspNetGuy ASP.NET 3.5 Basics 0 June 17th, 2008 06:15 PM
user controls not sustaining on a wizard step!! kaliaparijat ASP.NET 2.0 Professional 1 June 6th, 2008 01:41 PM
We Based Database Step By step desireemm SQL Language 1 October 15th, 2005 09:15 PM
Step by step installation peter_budo Beginning PHP 0 August 31st, 2004 01:04 PM



All times are GMT -4. The time now is 09:31 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.