CreateUserWizard - Validation control doesn't work! Help!

Last post 05-23-2009 6:07 AM by ranjith227. 5 replies.

Sort Posts:

  • CreateUserWizard - Validation control doesn't work! Help!

    01-12-2009, 12:41 PM
    • Member
      4 point Member
    • moomoonet
    • Member since 01-12-2009, 5:30 PM
    • Posts 5
    Hi folks,I am trying to add some validations controls to the second step of "CreateUserWizard" (Titled "Contact details"), but all validations failed to work. Having stuck on this for few days now sadly, so if anyone can give me some clue, will really appreciate it.P.S. Tested the original code, it doesn’t work as well, so obviously this is a bug from my point of view...Cheers,moomoonet

     

  • Re: CreateUserWizard - Validation control doesn't work! Help!

    01-14-2009, 12:56 PM
    • Member
      4 point Member
    • moomoonet
    • Member since 01-12-2009, 5:30 PM
    • Posts 5

    Validations controls inside this section never worked!!! see Member_Register.aspx. Why??? 

    <asp:WizardStep ID="WizardStep1" runat="server" Title="Contact details">
           <table>
            <tr>
             <td class="formlabel">
              <label for="fname">
               First Name:</label>
             </td>
             <td class="formvalue">
              <asp:TextBox runat="server" ID="fname" CssClass="txtfield" />
              <asp:RequiredFieldValidator ControlToValidate="fname" ErrorMessage="First Name is required."
               ID="RequiredFieldValidator1" runat="server" ToolTip="First Name is required."
               ValidationGroup="CreateUserForm">*</asp:RequiredFieldValidator>
             </td>
            </tr>
            <tr>
             <td class="formlabel">
              <label for="lname">
               Last Name:</label>
             </td>
             <td class="formvalue">
              <asp:TextBox runat="server" ID="lname" CssClass="txtfield" />
              <asp:RequiredFieldValidator ControlToValidate="lname" ErrorMessage="Last Name is required."
               ID="RequiredFieldValidator2" runat="server" ToolTip="Last Name is required."
               ValidationGroup="CreateUserForm">*</asp:RequiredFieldValidator>
             </td>
            </tr>
            <tr>
             <td class="formlabel">
              <label for="Addr">
               Address:</label>
             </td>
             <td class="formvalue">
              <asp:TextBox runat="server" ID="Addr" Rows="3" TextMode="MultiLine" CssClass="txtblock" />
             </td>
            </tr>
            <tr>
             <td class="formlabel">
              <label for="Phone">
               Phone:</label>
             </td>
             <td class="formvalue">
              <asp:TextBox runat="server" ID="Phone" CssClass="txtfield" />
             </td>
            </tr>
           </table>
          </asp:WizardStep>

  • Re: CreateUserWizard - Validation control doesn't work! Help!

    01-21-2009, 12:52 PM
    Answer
    • Member
      4 point Member
    • moomoonet
    • Member since 01-12-2009, 5:30 PM
    • Posts 5
    I am very disappointed that nobody answers  this question so far. Can somebody say "I don't know the answer either" to show some support, please? From my point of view, this is such obvious but critical problem…
  • Re: CreateUserWizard - Validation control doesn't work! Help!

    02-04-2009, 11:34 AM
    • Participant
      1,910 point Participant
    • aabruzzese
    • Member since 09-28-2005, 7:40 PM
    • Montreal, QC
    • Posts 464

    Well it seems that nobody knows or cares enough to answer this question, sorry I have not had any time to do anything on my end either so this is just going to be a nuissance issue for a while.

    AngeloA
  • Re: CreateUserWizard - Validation control doesn't work! Help!

    04-29-2009, 4:26 AM
    • Member
      2 point Member
    • IronsideAlpha
    • Member since 04-29-2009, 8:20 AM
    • Posts 1

     I've been looking at this and it seems that if you set your validation group to be the name of your CreateUserWizard control, your validator will be used when the reigster button is clicked.

     I hope this is of some use,

    Rob.

    E.g:

           <asp:CreateUserWizard ID="RegisterUser" runat="server" >
            
                <WizardSteps>
                    <asp:CreateUserWizardStep ID="CUWStep1" runat="server">
                        <ContentTemplate>
                            // Normal login stuff ripped out.
                            Business Focus:
                            <asp:DropDownList ID="ddlBusinessFocus" runat="server" >
                                <asp:ListItem Value="0" Text="" Selected="True" />
                                <asp:ListItem Text="Hedge Fund" />
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator id="ddlBusinessFocusValidator"  
                                runat="server" ErrorMessage="Please make a selection"
                                ControlToValidate="ddlBusinessFocus"
                                InitialValue="0" ValidationGroup="RegisterUser"/> <br />
                        </ContentTemplate>
                    </asp:CreateUserWizardStep>
                    <asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server">
                    </asp:CompleteWizardStep>
                </WizardSteps>
            </asp:CreateUserWizard>

  • Re: CreateUserWizard - Validation control doesn't work! Help!

    05-23-2009, 6:07 AM
    • Member
      22 point Member
    • ranjith227
    • Member since 01-22-2009, 1:51 AM
    • Bangalore
    • Posts 31
    HI dude try to take out the validation group in second step. Its working for me now i had same issues :)
    Ranjith
    God bless every one :)
    http://www.formsdotnet.blogspot.com

Page 1 of 1 (6 items)