Click here to Skip to main content
15,894,180 members
Articles / Web Development / ASP.NET

ASP.NET 2.0 Wizard Control

Rate me:
Please Sign up or sign in to vote.
4.29/5 (29 votes)
9 Oct 2006CPOL4 min read 245.2K   3.9K   40  
ASP.NET 2.0 Wizard Control
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Wizard ID="EmailRegWizard" runat="server" Height="314px" Width="517px" ActiveStepIndex="0" OnActiveStepChanged="EmailRegWizard_ActiveStepChanged" OnCancelButtonClick="EmailRegWizard_CancelButtonClick" OnFinishButtonClick="EmailRegWizard_FinishButtonClick" OnNextButtonClick="EmailRegWizard_NextButtonClick" OnPreviousButtonClick="EmailRegWizard_PreviousButtonClick" OnSideBarButtonClick="EmailRegWizard_SideBarButtonClick">
            <WizardSteps>
                <asp:WizardStep runat="server" StepType="Start" Title="User Info">
                    <table cellpadding=0 cellspacing=0 width="100%">
                        <tr>
                            <td>
                                First Name :
                            </td>
                            <td>
                                <asp:TextBox ID="FirstName" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="FirstNameVal" runat="server" ErrorMessage="!" ControlToValidate="FirstName"></asp:RequiredFieldValidator>
                            </td>
                            <td>
                                Last Name :
                            </td>
                            <td>
                                <asp:TextBox ID="LastName" runat="server"></asp:TextBox>
                            </td>                            
                        </tr>
                        <tr>
                            <td>
                                Gender :
                            </td>
                            <td>
                                <asp:DropDownList ID="Gender" runat="server">
                                    <asp:ListItem>Male</asp:ListItem>
                                    <asp:ListItem>Female</asp:ListItem>
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator ID="GenderVal" runat="server" ErrorMessage="!" ControlToValidate="Gender"></asp:RequiredFieldValidator>
                            </td>
                        </tr>                        
                        <tr>
                            <td>
                                State:
                            </td>
                            <td>
                                <asp:DropDownList ID="State" runat="server">
                                    <asp:ListItem>Andaman and Nicobar Islands</asp:ListItem>
                                    <asp:ListItem>Andhra Pradesh</asp:ListItem>
                                    <asp:ListItem>Arunachal Pradesh</asp:ListItem>
                                    <asp:ListItem>Assam</asp:ListItem>
                                    <asp:ListItem>Bihar</asp:ListItem>
                                    <asp:ListItem>Chandigarh</asp:ListItem>
                                    <asp:ListItem>Chattisgarh</asp:ListItem>
                                    <asp:ListItem>Dadra and Nagar Haveli</asp:ListItem>
                                    <asp:ListItem>Daman and Diu</asp:ListItem>
                                    <asp:ListItem>Delhi</asp:ListItem>
                                    <asp:ListItem>Goa</asp:ListItem>
                                    <asp:ListItem>Gujarat</asp:ListItem>
                                    <asp:ListItem>Haryana</asp:ListItem>
                                    <asp:ListItem>Himachal Pradesh</asp:ListItem>
                                    <asp:ListItem>Jammu and Kashmir</asp:ListItem>
                                    <asp:ListItem>Jharkhand</asp:ListItem>
                                    <asp:ListItem>Karnataka</asp:ListItem>
                                    <asp:ListItem>Kerala</asp:ListItem>
                                    <asp:ListItem>Lakshadweep</asp:ListItem>
                                    <asp:ListItem>Madhya Pradesh</asp:ListItem>
                                    <asp:ListItem>Maharashtra</asp:ListItem>
                                    <asp:ListItem>Manipur</asp:ListItem>
                                    <asp:ListItem>Meghalaya</asp:ListItem>
                                    <asp:ListItem>Mizoram</asp:ListItem>
                                    <asp:ListItem>Nagaland</asp:ListItem>
                                    <asp:ListItem>Orissa</asp:ListItem>
                                    <asp:ListItem>Pondicherry</asp:ListItem>
                                    <asp:ListItem>Punjab</asp:ListItem>
                                    <asp:ListItem>Rajasthan</asp:ListItem>
                                    <asp:ListItem>Sikkim</asp:ListItem>
                                    <asp:ListItem>Tamil Nadu</asp:ListItem>
                                    <asp:ListItem>Tripura</asp:ListItem>
                                    <asp:ListItem>Uttarakhand</asp:ListItem>
                                    <asp:ListItem>Uttaranchal</asp:ListItem>
                                    <asp:ListItem>Uttar Pradesh</asp:ListItem>
                                    <asp:ListItem>West Bengal</asp:ListItem>
                                </asp:DropDownList>                                
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Pin Code :
                            </td>
                            <td>
                                <asp:TextBox ID="PinCode" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                         <tr>
                            <td>
                                Alternate Email :
                            </td>
                            <td>
                                <asp:TextBox ID="AltEmail" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                    </table>  
                </asp:WizardStep>
                <asp:WizardStep runat="server" Title="Email Details">
                    <table cellpadding=0 cellspacing=0 width="100%">
                        <tr>
                            <td>
                                Login Name :
                            </td>
                            <td>
                                <asp:TextBox ID="LoginName" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="LoginVal" runat="server" ErrorMessage="!" ControlToValidate="LoginName"></asp:RequiredFieldValidator>
                            </td>                        
                        </tr>
                        <tr>
                            <td>
                                Password :
                            </td>
                            <td>
                                <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                            </td>                      
                        </tr>
                        <tr>
                            <td>
                                Confirm Password :
                            </td>
                            <td>
                               <asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password"></asp:TextBox> 
                            </td>
                        </tr>
                    </table> 
                </asp:WizardStep>
                <asp:WizardStep runat="server" Title="Forgot Password">
                   <table cellpadding=0 cellspacing=0 width="100%">
                        <tr>
                            <td>
                                Hint Question :
                            </td>
                            <td>
                                <asp:DropDownList ID="HintQuestion" runat="server">
                                    <asp:ListItem>What is the name of your first school?</asp:ListItem>
                                    <asp:ListItem>What is your favourite pass-time?</asp:ListItem>
                                    <asp:ListItem>What is your mother's maiden name?</asp:ListItem>
                                    <asp:ListItem>What is your favourite food?</asp:ListItem>
                                    <asp:ListItem>What is your exact time of birth?</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Hint Answer :
                            </td>
                            <td>
                                <asp:TextBox ID="HintAnswer" runat="server" TextMode="Password"></asp:TextBox>
                            </td>
                        </tr>        
                    </table>
                </asp:WizardStep>
                <asp:WizardStep runat="server" Title="Interests">
                    <table cellpadding=0 cellspacing=0 width="100%">
                        <tr>
                            <td>
                                <asp:CheckBox ID="News" runat="server" Text="News"/>
                            </td>
                            <td>
                                <asp:CheckBox ID="HnF" runat="server" Text="Home &amp; Family"/>
                            </td>
                            <td>
                                <asp:CheckBox ID="HnN" runat="server" Text="Health &amp; Nutrition"/>
                            </td>
                            <td>
                                <asp:CheckBox ID="Auto" runat="server" Text="Automobiles"/>
                            </td>                            
                        </tr>
                        <tr>
                            <td>
                                <asp:CheckBox ID="Education" runat="server" Text="Education"/>
                            </td>
                            <td>
                                <asp:CheckBox ID="Loand" runat="server" Text="Loans"/>
                            </td>
                            <td>
                                <asp:CheckBox ID="Travel" runat="server" Text="Travel"/>
                            </td>
                            <td>
                                <asp:CheckBox ID="Computers" runat="server" Text="Computers"/>
                            </td>                            
                        </tr>                        
                        <tr>
                            <td>
                                <asp:CheckBox ID="Shopping" runat="server" Text="Shopping"/>
                            </td>
                            <td>
                                <asp:CheckBox ID="Insurance" runat="server" Text="Insurance"/>
                            </td>
                            <td>
                                <asp:CheckBox ID="Beauty" runat="server" Text="Beauty "/>
                            </td>
                            <td>
                                <asp:CheckBox ID="Fashion" runat="server" Text="Fashion"/>
                            </td>                            
                        </tr>
                        <tr>
                            <td>
                                <asp:CheckBox ID="Sports" runat="server" Text="Sports "/>
                            </td>
                            <td>
                                <asp:CheckBox ID="OnlineGames" runat="server" Text="Online Gaming"/>
                            </td>
                            <td>
                                <asp:CheckBox ID="SpecialOffers" runat="server" Text="Special Offers"/>
                            </td>
                            <td>
                                <asp:CheckBox ID="Family" runat="server" Text="Family"/>
                            </td>                            
                        </tr>
                    </table>
                </asp:WizardStep>
                <asp:WizardStep runat="server" StepType="Finish" Title="Terms&amp;Conditions">
                    <table>
                        <tr>
                            <td style="height: 294px">
                                <asp:TextBox ID="TermsAndConditions" runat="server" TextMode="MultiLine" Height="323px" Width="337px" Text="Terms &amp; Conditions" Font-Bold="True" Font-Names="Impact" Font-Size="XX-Large"></asp:TextBox> 
                            </td>
                        </tr>                
                    </table>
                </asp:WizardStep>
            </WizardSteps>
        </asp:Wizard>
    
    </div>
    </form>
</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
United States United States
Namratha Shah a.k.a. Nasha is from orginally from Bombay, India but currently residing NJ, USA. She has to her credit, a Bachelor’s Degree in Microbiology and Biotechnology and a Master's in Computer and Software Applications (1999-2001) from Somaiya College Bombay. She started her career with C and C++ and then moved on to Microsoft Technologies. She has over 7.5 years experience in software architecture, design and development. She is a Certified Scrum Master and a member of the CORE .NET Architecture team. She has been Awarded with Microsoft’s Prestigious Most Valuable Professional (MVP) twice consecutively in years 2005 and 2006 in Visual C#.NET for her outstanding contributions to the .NET community.

Comments and Discussions