V
Vincent
Hi,
With this CreateuserWizard code, i have two problems:
1) when email is left empty => "email not valid." and not "E-mailadres is
required." (never shown).
When is "E-mailadres is required." shown?
2) anything as email is accepted: "This is not a valid emailaddress" is
never shown. Do i have to put a Regularexpressionvalidator control myself?
But then what's the purpose of the property 'EmailRegularExpression'?
<asp:CreateUserWizard ID="CreateUserWizard1" runat="server"
DuplicateEmailErrorMessage="email already exist."
EmailRegularExpressionErrorMessage="This is not a valid emailaddress"
EmailRegularExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
EmailRequiredErrorMessage="E-mailadres is required."
InvalidEmailErrorMessage="email not valid." >
<WizardSteps>
<asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server">
<ContentTemplate>
<asp:Label ID="EmailLabel" runat="server" Text="E-mail:"></asp:Label>
<asp:TextBox ID="Email" runat="server"
ValidationGroup="CreateUserWizard1"></asp:TextBox>
<br>
<asp:Literal ID="ErrorMessage" runat="server"
EnableViewState="False"></asp:Literal>
....
Thanks
Vincent
With this CreateuserWizard code, i have two problems:
1) when email is left empty => "email not valid." and not "E-mailadres is
required." (never shown).
When is "E-mailadres is required." shown?
2) anything as email is accepted: "This is not a valid emailaddress" is
never shown. Do i have to put a Regularexpressionvalidator control myself?
But then what's the purpose of the property 'EmailRegularExpression'?
<asp:CreateUserWizard ID="CreateUserWizard1" runat="server"
DuplicateEmailErrorMessage="email already exist."
EmailRegularExpressionErrorMessage="This is not a valid emailaddress"
EmailRegularExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
EmailRequiredErrorMessage="E-mailadres is required."
InvalidEmailErrorMessage="email not valid." >
<WizardSteps>
<asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server">
<ContentTemplate>
<asp:Label ID="EmailLabel" runat="server" Text="E-mail:"></asp:Label>
<asp:TextBox ID="Email" runat="server"
ValidationGroup="CreateUserWizard1"></asp:TextBox>
<br>
<asp:Literal ID="ErrorMessage" runat="server"
EnableViewState="False"></asp:Literal>
....
Thanks
Vincent