[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

08/25/2007 at 10:50PM PDT, ID: 22787464
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.4

Custom Wizard How-To

Asked by Scripter25 in Programming for ASP.NET, C# Programming Language, .NET Framework 2.x

Tags: wizard, custom, how

I have a Custom Wizard for a registration that I am wanting to integrate into the standard Microsoft Membership provider. Only the last step of the and part of the step prior to last will be used to create the user as part of the MS Membership provider. I will have to verify that there is not already a user with that username in the database. and then I need to add the rest which I can do but not for sure how to incorporate the membership provider into this



<asp:Wizard ID="Wizard1" runat="server" ActiveStepIndex="4" BackColor="#EFF3FB" BorderColor="#B5C7DE"
                    BorderWidth="1px" Font-Names="Arial" Font-Size="12px" HeaderText="New User Registration Form"
                    Height="400px" Width="100%" OnNextButtonClick="Wizard1_NextButtonClick">
                    <StepStyle Font-Names="Arial" Font-Size="12px" ForeColor="#333333" HorizontalAlign="Left"
                        VerticalAlign="Top" />
                    <SideBarStyle BackColor="#507CD1" Font-Size="0.9em" HorizontalAlign="Left" VerticalAlign="Top"
                        Width="150px" />
                    <NavigationButtonStyle BackColor="White" BorderColor="#507CD1" BorderStyle="Solid"
                        BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#284E98" />
                    <WizardSteps>
                        <asp:WizardStep ID="WizardStep1" runat="server" StepType="Start" Title="Instructions">
                            <asp:Label ID="lbl_welcome" runat="server" Text="Label"></asp:Label>
                        </asp:WizardStep>
                        <asp:WizardStep ID="WizardStep2" runat="server" Title="Name">
                            <table style="width: 100%">
                                <tr>
                                    <td style="width: 150px">
                                        Company Name:</td>
                                    <td>
                                        <asp:TextBox ID="txt_company" runat="server" Width="200px"></asp:TextBox>
                                        *
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txt_company"
                                            ErrorMessage="Required">required</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 150px">
                                        First Name:</td>
                                    <td>
                                        <asp:TextBox ID="txt_fname" runat="server" Width="200px"></asp:TextBox>
                                        *
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txt_fname"
                                            ErrorMessage="Required">required</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 150px">
                                        Last Name:</td>
                                    <td>
                                        <asp:TextBox ID="txt_lname" runat="server" Width="200px"></asp:TextBox>
                                        *
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txt_lname"
                                            ErrorMessage="Required">required</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 150px">
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                            </table>
                        </asp:WizardStep>
                        <asp:WizardStep ID="WizardStep3" runat="server" Title="Address">
                            <table style="width: 100%">
                                <tr>
                                    <td style="width: 151px">
                                        <strong>Billing Address</strong></td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 151px">
                                        Address Line 1:</td>
                                    <td>
                                        <asp:TextBox ID="txt_ba1" runat="server" Width="200px"></asp:TextBox>
                                        *<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txt_ba1"
                                            ErrorMessage="Required">required</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 151px">
                                        Address Line 2:</td>
                                    <td>
                                        <asp:TextBox ID="txt_ba2" runat="server" Width="200px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 151px">
                                        City:</td>
                                    <td>
                                        <asp:TextBox ID="txt_bcity" runat="server"></asp:TextBox>
                                        *<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txt_bcity"
                                            ErrorMessage="Required">required</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 151px">
                                        State:</td>
                                    <td>
                                        <asp:TextBox ID="txt_bstate" runat="server" MaxLength="2" Width="30px"></asp:TextBox>
                                        *<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txt_bstate"
                                            ErrorMessage="Required">required</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 151px">
                                        Zip:</td>
                                    <td>
                                        <asp:TextBox ID="txt_bzip" runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txt_bzip"
                                            ErrorMessage="Required">required</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 151px">
                                    </td>
                                    <td>
                                        <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="True" Text="My shipping address is the same as my billing address" />
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 151px">
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 151px">
                                        <strong>Shipping Address:</strong></td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 151px">
                                        Address Line 1:</td>
                                    <td>
                                        <asp:TextBox ID="txt_sa1" runat="server" Width="200px"></asp:TextBox>
                                        *<asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txt_sa1"
                                            ErrorMessage="Required">required</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 151px">
                                        Address Line 2:</td>
                                    <td>
                                        <asp:TextBox ID="txt_sa2" runat="server" Width="200px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 151px">
                                        City:</td>
                                    <td>
                                        <asp:TextBox ID="txt_scity" runat="server"></asp:TextBox>
                                        *
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="txt_bcity"
                                            ErrorMessage="Required">required</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 151px">
                                        State:</td>
                                    <td>
                                        <asp:TextBox ID="txt_sstate" runat="server" MaxLength="2" Width="30px"></asp:TextBox>
                                        *
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="txt_bstate"
                                            ErrorMessage="Required">required</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 151px">
                                        Zip:</td>
                                    <td>
                                        <asp:TextBox ID="txt_szip" runat="server"></asp:TextBox>
                                        *
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="txt_bzip"
                                            ErrorMessage="Required">required</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                            </table>
                        </asp:WizardStep>
                        <asp:WizardStep ID="WizardStep4" runat="server" Title="Contact Information">
                            <table style="width: 100%">
                                <tr>
                                    <td style="width: 150px">
                                        Phone Number:</td>
                                    <td>
                                        <asp:TextBox ID="txt_phone" runat="server"></asp:TextBox>
                                        *
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="txt_phone"
                                            ErrorMessage="Required">required</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 150px">
                                        Email Address:</td>
                                    <td>
                                        <asp:TextBox ID="txt_email" runat="server"></asp:TextBox>
                                        *
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ControlToValidate="txt_email"
                                            ErrorMessage="Required">required</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txt_email"
                                            ErrorMessage="invalid email address" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 150px">
                                        Confirm Email Address:</td>
                                    <td>
                                        <asp:TextBox ID="txt_cemail" runat="server"></asp:TextBox>
                                        *
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" ControlToValidate="txt_cemail"
                                            ErrorMessage="Required">required</asp:RequiredFieldValidator>
                                        <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txt_email"
                                            ControlToValidate="txt_cemail" ErrorMessage="the email addresses do not match"></asp:CompareValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 150px">
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                            </table>
                        </asp:WizardStep>
                        <asp:WizardStep ID="WizardStep5" runat="server" StepType="Finish" Title="Select Username">
                            <table style="width: 100%">
                                <tr>
                                    <td style="width: 150px">
                                        Desired Username:</td>
                                    <td>
                                        <asp:TextBox ID="txt_username" runat="server"></asp:TextBox>
                                        *
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" ControlToValidate="txt_username"
                                            ErrorMessage="Required">required</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 150px">
                                        Password:</td>
                                    <td>
                                        <asp:TextBox ID="txt_password" runat="server" TextMode="Password"></asp:TextBox>
                                        *
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" ControlToValidate="txt_password"
                                            ErrorMessage="Required">required</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 150px">
                                        Confirm Password:</td>
                                    <td>
                                        <asp:TextBox ID="txt_cpassword" runat="server" TextMode="Password"></asp:TextBox>
                                        *
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server" ControlToValidate="txt_cpassword"
                                            ErrorMessage="RequiredFieldValidator">required</asp:RequiredFieldValidator>
                                        <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToCompare="txt_password"
                                            ControlToValidate="txt_cpassword" ErrorMessage="CompareValidator">the passwords do not match</asp:CompareValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 150px">
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 150px">
                                    </td>
                                    <td>
                                        <asp:Label ID="lbl_userError" runat="server" ForeColor="Red"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 150px">
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                            </table>
                        </asp:WizardStep>
                    </WizardSteps>
                    <SideBarButtonStyle BackColor="#507CD1" Font-Names="Verdana" ForeColor="White" />
                    <HeaderStyle BackColor="#284E98" BorderColor="#EFF3FB" BorderStyle="Solid" BorderWidth="2px"
                        Font-Bold="True" Font-Size="0.9em" ForeColor="White" HorizontalAlign="Center" />
                </asp:Wizard>
 
Keywords: Custom Wizard How-To
 
Loading Advertisement...
 
[+][-]08/26/07 08:25 AM, ID: 19771285

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/26/07 09:58 AM, ID: 19771506

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/26/07 10:32 AM, ID: 19771576

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Programming for ASP.NET, C# Programming Language, .NET Framework 2.x
Tags: wizard, custom, how
Sign Up Now!
Solution Provided By: TSmooth
Participating Experts: 1
Solution Grade: A
 
 
[+][-]08/26/07 10:53 AM, ID: 19771636

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20090824-EE-VQP-74 / EE_QW_2_20070628