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
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…
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.
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.
moomoonet
Member
4 Points
5 Posts
CreateUserWizard - Validation control doesn't work! Help!
Jan 12, 2009 04:41 PM|LINK
Club Starter Kit Extended
moomoonet
Member
4 Points
5 Posts
Re: CreateUserWizard - Validation control doesn't work! Help!
Jan 14, 2009 04:56 PM|LINK
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>
Club Starter Kit Extended
moomoonet
Member
4 Points
5 Posts
Re: CreateUserWizard - Validation control doesn't work! Help!
Jan 21, 2009 04:52 PM|LINK
aabruzzese
Contributor
2806 Points
759 Posts
Re: CreateUserWizard - Validation control doesn't work! Help!
Feb 04, 2009 03:34 PM|LINK
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.
IronsideAlph...
Member
2 Points
1 Post
Re: CreateUserWizard - Validation control doesn't work! Help!
Apr 29, 2009 08:26 AM|LINK
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>
ranjith227
Member
27 Points
42 Posts
Re: CreateUserWizard - Validation control doesn't work! Help!
May 23, 2009 10:07 AM|LINK
God bless every one :)
http://www.formsdotnet.blogspot.com