email validation doesn't work with CreateUserWizard

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Vincent

    email validation doesn't work with CreateUserWizard

    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


  • ABHIJIT B

    #2
    Re: email validation doesn't work with CreateUserWizar d

    Hi Vincent,

    While inserting new user on Submit button again check Email textbox
    should not be blank.

    Best regards,

    Abhijit B

    On Feb 20, 12:22 pm, "Vincent" <vi,@sd.cvwrote :
    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

    Comment

    • Vincent

      #3
      Re: email validation doesn't work with CreateUserWizar d

      Hi Abhijit,

      thanks for replying, but i don't understand what you mean ...

      "ABHIJIT B" <abhijitbavdhan kar@gmail.comsc hreef in bericht
      news:af1464ae-e5fe-4b45-9462-8484370c5b6d@s8 g2000prg.google groups.com...
      Hi Vincent,
      >
      While inserting new user on Submit button again check Email textbox
      should not be blank.
      >
      Best regards,
      >
      Abhijit B
      >
      On Feb 20, 12:22 pm, "Vincent" <vi,@sd.cvwrote :
      >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:CreateUse rWizard ID="CreateUserW izard1" runat="server"
      >DuplicateEmail ErrorMessage="e mail already exist."
      >EmailRegularEx pressionErrorMe ssage="This is not a valid emailaddress"
      >EmailRegularEx pression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
      >EmailRequiredE rrorMessage="E-mailadres is required."
      >InvalidEmailEr rorMessage="ema il not valid." >
      >>
      ><WizardSteps >
      ><asp:CreateUse rWizardStep ID="CreateUserW izardStep1" runat="server">
      ><ContentTempla te>
      ><asp:Label ID="EmailLabel " runat="server" Text="E-mail:"></asp:Label>
      ><asp:TextBox ID="Email" runat="server"
      >ValidationGrou p="CreateUserWi zard1"></asp:TextBox>
      ><br>
      ><asp:Literal ID="ErrorMessag e" runat="server"
      >EnableViewStat e="False"></asp:Literal>
      >>
      >...
      >>
      >Thanks
      >Vincent
      >

      Comment

      • Keith G Hicks

        #4
        Re: email validation doesn't work with CreateUserWizar d

        Vincent,

        Did you ever solve this? I'm having the same problem. Seems like MS just
        goes so far with things and then drops the ball.

        Keith


        "Vincent" <vi,@sd.cvwro te in message
        news:#iDA6U#cIH A.3788@TK2MSFTN GP02.phx.gbl...
        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
        >
        >

        Comment

        Working...