Email Validation failing every time on OPC checkout

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
William_firefold
Commander (CMDR)
Commander (CMDR)
Posts: 186
Joined: Fri Aug 01, 2008 8:38 am

Email Validation failing every time on OPC checkout

Post by William_firefold » Wed Jul 29, 2009 6:23 am

For some reason, OnePageCheckout is not allowing account registration on the page and is saying Email address is not valid, even when the address is valid.
When I remove this particular validator, everything works fine. Obviously this is not a solution though.

Any idea what could cause this problem?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Email Validation failing every time on OPC checkout

Post by mazhar » Wed Jul 29, 2009 6:40 am

Your application version? Also could you post commented validator code here?

User avatar
William_firefold
Commander (CMDR)
Commander (CMDR)
Posts: 186
Joined: Fri Aug 01, 2008 8:38 am

Re: Email Validation failing every time on OPC checkout

Post by William_firefold » Wed Jul 29, 2009 6:50 am

we are upgrading to 7.0.3 so that is the base for the code. We have modifications, but not to this section.

Code: Select all

    
<tr id="trEmail" runat="server" enableviewstate="false">
<th>
<asp:Label ID="BillToEmailLabel" runat="server" Text="Email:" AssociatedControlID="BillToEmail" EnableViewState="false"></asp:Label></th>
<td>
<asp:TextBox ID="BillToEmail" runat="server" EnableViewState="false" Width="200px" MaxLength="250" ValidationGroup="OPC"></asp:TextBox> 
<asp:RequiredFieldValidator  ID="BillToEmailValidator" runat="server" Text="*"
ErrorMessage="Email is required." Display="Static" ControlToValidate="BillToEmail"
EnableViewState="false" SetFocusOnError="false" ValidationGroup="OPC"></asp:RequiredFieldValidator>

<%-- When this code is removed, the registration completes

<asp:RegularExpressionValidator ID="BillToEmailFormatValidator" runat="server" Text="*"
ErrorMessage="Email address is not valid" Display="static" ControlToValidate="BillToEmail"
EnableViewState="false" SetFocusOnError="false" ValidationGroup="OPC"></asp:RegularExpressionValidator>
--%>
</td>
    </tr>

Post Reply