Ajax Mask and Compare Validator

I have an SSN field that I need masked and then validated using Ajax.  I currently have it working on only one site(which is built on the 4.0 .net frameset) but 3 other sites(4.5 frameset) that do not work.  They are all using the exact same coding but only the 4.0 frameset works.

  <tr align="center">
    <td><asp:Label ID="lb_regSSN" runat="server" Text="Social Security#:" CssClass="form_label"></asp:Label></td>
    <td><asp:Label ID="lb_vrfRegSSN" runat="server" Text="Verify Social Security#:" CssClass="form_label"></asp:Label></td>
  </tr>
    <tr align="center">
      <td>
 <asp:TextBox ID="tb_RegSSN" runat="server" CssClass="inputs" ValidationGroup="vg_NewUser"></asp:TextBox>
       </td>
      <td>
<asp:TextBox ID="tb_VerSSN" runat="server" CssClass="inputs" ValidationGroup="vg_NewUser"></asp:TextBox>
      </td>
       </tr>
         <tr align="center">
       <td>
<asp:RequiredFieldValidator ID="rfv_RegSSN" runat="server" ControlToValidate="tb_RegSSN" ErrorMessage="Please enter your SSN#." Display="Dynamic" ForeColor="Red" Font-Size="Small" ValidationGroup="vg_NewUser"></asp:RequiredFieldValidator>
 </td>
   <td>
<asp:RequiredFieldValidator ID="rfv_VerSSN" runat="server" ControlToValidate="tb_VerSSN" ErrorMessage="Please re-enter your SSN#." Display="Dynamic" ForeColor="Red" Font-Size="Small" ValidationGroup="vg_NewUser"></asp:RequiredFieldValidator>
 </td>
 </tr>
  <tr align="center">
 <td colspan="2">
<asp:MaskedEditExtender ID="mee_SSN" runat="server" Mask="999-99-9999" MaskType="Number" Filtered="-" MessageValidatorTip="true" InputDirection="LeftToRight" AutoComplete="false" ClearMaskOnLostFocus="false" TargetControlID="tb_RegSSN"></asp:MaskedEditExtender>

<asp:MaskedEditExtender ID="mee_SSN2" runat="server" Mask="999-99-9999" MaskType="Number" Filtered="-" MessageValidatorTip="true" InputDirection="LeftToRight" AutoComplete="false" ClearMaskOnLostFocus="false" TargetControlID="tb_VerSSN"></asp:MaskedEditExtender>
                                                         <asp:CompareValidator ID="cv_SSN" runat="server" ControlToValidate="tb_VerSSN" ControlToCompare="tb_RegSSN" Type="String" ErrorMessage="Social security numbers do not match." ForeColor="Red" Font-Size="Small" Display="Dynamic" CssClass="pull-right" ValidationGroup="vg_NewUser" ></asp:CompareValidator>
                                                          </td>
                                                 </tr>

Open in new window

Shade22Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bob LearnedCommented:
What version of the AJAX Control Toolkit are you using?  I believe that the current version is v15.1.2.
0
Shade22Author Commented:
Yes. I am using the v15.1.2 version.
0
Bob LearnedCommented:
Hmmm...is the framework version the only difference between the 4.0 and 4.5 projects?

Are you getting any errors, or does it just not do anything?
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Shade22Author Commented:
Yes.  The code is exactly the same, down to the ID of the object.  It will constantly say that the two items do not match when they do match.  Like I said, this code was taken from a working environment in the 4.0 framework.
0
Bob LearnedCommented:
I created a new ASP.NET Web Forms 4.5 application, added AJAX Control Toolkit from NuGet, pasted in your code, and it worked fine for me.

Working page
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Shade22Author Commented:
Thanks for the help Bob, but this was a weird case where nothing worked so I had to do it with javascript.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
AJAX

From novice to tech pro — start learning today.