Source view of CREATEUSERWIZARD.ASPX
DotNet Funda: Code Viewer
createuserwizard.aspx | createuserwizard.aspx.cs
Close Window  
<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderHeader" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderForTitleAndIntro" Runat="Server">
    <table width="100%" cellpadding="2" cellspacing="0">
        <tr valign="top" class="ArticleTitle">
            <td style="padding-left:10px;" valign="middle">
                asp:CreateUserWizard control</td>
        </tr>
        <tr>
            <td class="ArticleContents">
                CreateUserWizard control is a ready to use control that is used to create a new user to the website.
            </td>
        </tr>
        <tr>
            <td colspan="2">&nbsp;</td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderForContents" Runat="Server">
    <div class="ArticleContents">
        CreateUserWizard control is a ready to use control that is used to create a new user to the website. In other words we can say that it a replacement of Registration form of a website.
        It has few steps to complete the registration process.
        Internally, When it is rendered on the page, it is implemented through &lt;table&gt;&lt;/table&gt; HTML tag.
        <p>
            Its properties like <span class="DemoCP">BackColor, ForeColor, BorderColor, BorderStyle, BorderWidth, Height etc. </span>
            are implemented through style properites of &lt;table, tr, td/&gt; tag. 
        </p>
        
        CreateUserWizard control uses Membership service to create user's details.
        
        <br /><br />
        Following are some important events that are very useful.
        <table width="100%" class="TutoPropPlaceHolder" border="1" cellpadding="2" cellspacing="1">
            <tr>
                <th colspan="2" align="left">
                    Events of CreateUserWizard Control
                </th>
            </tr>
            <tr>
                <td class="DemoCP">ContinueButtonClick</td>
                <td>
                    Fires when user clicks Continue button in the last wizard step.
                </td>
            </tr>
            <tr>
                <td class="DemoCP">CreatingUser</td>
                <td>
                    Fires before creating a new user.
                </td>
            </tr>
            <tr>
                <td class="DemoCP">CreatedUser</td>
                <td>
                    Fires after new user created.
                </td>
            </tr>
            <tr>
                <td class="DemoCP">CreateUserError</td>
                <td>
                    Fires when creation of user is not successful.
                </td>
            </tr>
          </table>  
        <!-- START - Demo Section -->
        <table class="DemoPlaceHolder" border="1" cellpadding="2" cellspacing="4">
            <tr>
                <td class="DemoTitle">
                    DEMO : CreateUserWizard
                </td>
                <td align="right">
                    <a class="DemoShowSource" href="../../misc/codeviewer/default.aspx?pagename=~/tutorials/controls/createuserwizard.aspx" target="_blank">Show Source Code</a>
                </td>
            </tr>
            <tr>
                <td>
                    <span class="WeWillCoverInFuture">NOTE: This example is not working as this control users in-built Membership and Role Manager Providers, <br /> We will try to cover membership provider tutorials in future.</span>
                    <br />
                    <asp:CreateUserWizard ID="CreateUserWizard1" runat="server" BackColor="#F7F6F3" BorderColor="#E6E2D8"
                        BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" 
                        Enabled="False" DisableCreatedUser="true">
                        <WizardSteps>
                            <asp:CreateUserWizardStep runat="server">
                            </asp:CreateUserWizardStep>
                            <asp:CompleteWizardStep runat="server">
                            </asp:CompleteWizardStep>
                        </WizardSteps>
                        <SideBarStyle BackColor="#5D7B9D" BorderWidth="0px" Font-Size="0.9em" VerticalAlign="Top" />
                        <TitleTextStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <SideBarButtonStyle BorderWidth="0px" Font-Names="Verdana" ForeColor="White" />
                        <NavigationButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" BorderStyle="Solid"
                            BorderWidth="1px" Font-Names="Verdana" ForeColor="#284775" />
                        <HeaderStyle BackColor="#5D7B9D" BorderStyle="Solid" Font-Bold="True" Font-Size="0.9em"
                            ForeColor="White" HorizontalAlign="Center" />
                        <CreateUserButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" BorderStyle="Solid"
                            BorderWidth="1px" Font-Names="Verdana" ForeColor="#284775" />
                        <ContinueButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" BorderStyle="Solid"
                            BorderWidth="1px" Font-Names="Verdana" ForeColor="#284775" />
                        <StepStyle BorderWidth="0px" />
                    </asp:CreateUserWizard>
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <!-- START - Server Side Code -->
                    <pre>                    
// CreateUserWizard Control ////////////////////////////          
&lt;asp:CreateUserWizard ID="CreateUserWizard1" runat="server" BackColor="#F7F6F3" BorderColor="#E6E2D8"
        BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" Enabled="False"&gt;
        &lt;WizardSteps&gt;
            &lt;asp:CreateUserWizardStep runat="server"&gt;
            &lt;/asp:CreateUserWizardStep&gt;
            &lt;asp:CompleteWizardStep runat="server"&gt;
            &lt;/asp:CompleteWizardStep&gt;
        &lt;/WizardSteps&gt;
        &lt;SideBarStyle BackColor="#5D7B9D" BorderWidth="0px" Font-Size="0.9em" VerticalAlign="Top" /&gt;
        &lt;TitleTextStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /&gt;
        &lt;SideBarButtonStyle BorderWidth="0px" Font-Names="Verdana" ForeColor="White" /&gt;
        &lt;NavigationButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" BorderStyle="Solid"
            BorderWidth="1px" Font-Names="Verdana" ForeColor="#284775" /&gt;
        &lt;HeaderStyle BackColor="#5D7B9D" BorderStyle="Solid" Font-Bold="True" Font-Size="0.9em"
            ForeColor="White" HorizontalAlign="Center" /&gt;
        &lt;CreateUserButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" BorderStyle="Solid"
            BorderWidth="1px" Font-Names="Verdana" ForeColor="#284775" /&gt;
        &lt;ContinueButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" BorderStyle="Solid"
            BorderWidth="1px" Font-Names="Verdana" ForeColor="#284775" /&gt;
        &lt;StepStyle BorderWidth="0px" /&gt;
    &lt;/asp:CreateUserWizard&gt;


                    </pre> 
                    <!-- END - Server Side Code -->
                </td>
            </tr>
        </table>
        <!-- END - Demo Section -->
        </div>
    <br />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="PlaceHolderFooter" Runat="Server">
</asp:Content>

Go Top