Add "Confirm Email" to the registration page.

Last post 11-28-2009 4:45 AM by suthish nair. 4 replies.

Sort Posts:

  • Add "Confirm Email" to the registration page.

    11-26-2009, 1:25 PM
    • Member
      35 point Member
    • racer184
    • Member since 03-13-2009, 3:59 PM
    • Posts 11

    I needed to add a step to "confirm email" address on the registration page.  Quite a few people type their email address wrong and never check it.  Then they wonder why they don't get any replies to their ad on my classifieds site.   (One man got 27 "respond to ad" in one day and said my site sucked....  well... he put in the wrong email address!)

    The only form affected is   register.aspx  .  After the text box for "email"  add this.

    Confirm Email:
    <asp:TextBox runat="server" ID="ConfirmEmail" CssClass="user_info"
    ToolTip="Enter your email again, please. This is to be sure you have not mistyped it."></asp:TextBox>
    <br />

    <asp:RequiredFieldValidator ID="ConfirmEmailValidator" runat="server"
    ControlToValidate="ConfirmEmail"
    ErrorMessage="Email and Confirm Email must match"
    ToolTip="Confirm Email address" ValidationGroup="CreateUserWizardControl"></asp:RequiredFieldValidator>

    <br />

    Then, lower down the page look for "CompareValidator"  that is for checking the password.  I entered this to compare the email and confirm email textbox es.

     <asp:CompareValidator runat="server" ControlToValidate="ConfirmEmail" ValidationGroup="CreateUserWizardControl"
    ID="EmailCompare" Display="Dynamic" ErrorMessage="The email and confirm email must match."
    ControlToCompare="Email">
    </asp:CompareValidator>

    It sure looks like a simple thing to do.   But it did take me a while to learn that I was using the wrong kind of validator.

  • Re: Add "Confirm Email" to the registration page.

    11-26-2009, 2:07 PM
    Answer

     

    Refer solution:

    http://forums.asp.net/t/1491541.aspx

     


    Mark as Answer
    on the posts replys that helped you.
    My Blog -: MSChart

  • Re: Add "Confirm Email" to the registration page.

    11-26-2009, 2:15 PM
    Answer
    • All-Star
      59,189 point All-Star
    • mudassarkhan
    • Member since 02-28-2008, 10:28 AM
    • Mumbai, India
    • Posts 10,485
  • Re: Add "Confirm Email" to the registration page.

    11-27-2009, 5:30 PM
    • Member
      35 point Member
    • racer184
    • Member since 03-13-2009, 3:59 PM
    • Posts 11

    I really DID search the forum to see if this had been covered before I started on it.

    I am surprised that I managed to completely miss that forum thread ....  and it was so recent !


    I am   embarrassed !!!!!!!

  • Re: Add "Confirm Email" to the registration page.

    11-28-2009, 4:45 AM

     

    The link I and MAK posted are the same.. You need to Mark As Answer both.


    Mark as Answer
    on the posts replys that helped you.
    My Blog -: MSChart

Page 1 of 1 (5 items)