Hi,
With this CreateuserWizar d 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 Regularexpressi onvalidator control myself?
But then what's the purpose of the property 'EmailRegularEx pression'?
<asp:CreateUser Wizard ID="CreateUserW izard1" runat="server"
DuplicateEmailE rrorMessage="em ail already exist."
EmailRegularExp ressionErrorMes sage="This is not a valid emailaddress"
EmailRegularExp ression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
EmailRequiredEr rorMessage="E-mailadres is required."
InvalidEmailErr orMessage="emai l not valid." >
<WizardSteps>
<asp:CreateUser WizardStep ID="CreateUserW izardStep1" runat="server">
<ContentTemplat e>
<asp:Label ID="EmailLabel " runat="server" Text="E-mail:"></asp:Label>
<asp:TextBox ID="Email" runat="server"
ValidationGroup ="CreateUserWiz ard1"></asp:TextBox>
<br>
<asp:Literal ID="ErrorMessag e" runat="server"
EnableViewState ="False"></asp:Literal>
....
Thanks
Vincent
With this CreateuserWizar d 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 Regularexpressi onvalidator control myself?
But then what's the purpose of the property 'EmailRegularEx pression'?
<asp:CreateUser Wizard ID="CreateUserW izard1" runat="server"
DuplicateEmailE rrorMessage="em ail already exist."
EmailRegularExp ressionErrorMes sage="This is not a valid emailaddress"
EmailRegularExp ression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
EmailRequiredEr rorMessage="E-mailadres is required."
InvalidEmailErr orMessage="emai l not valid." >
<WizardSteps>
<asp:CreateUser WizardStep ID="CreateUserW izardStep1" runat="server">
<ContentTemplat e>
<asp:Label ID="EmailLabel " runat="server" Text="E-mail:"></asp:Label>
<asp:TextBox ID="Email" runat="server"
ValidationGroup ="CreateUserWiz ard1"></asp:TextBox>
<br>
<asp:Literal ID="ErrorMessag e" runat="server"
EnableViewState ="False"></asp:Literal>
....
Thanks
Vincent
Comment