Custom Field Validation Controls

rated by 0 users
Not Answered This post has 0 verified answers | 0 Replies | 1 Follower

TechLINKS
Top 500 Contributor
46 Posts
Points 720
By: TechLINKS
Posted: Thu, Jul 3 2008 1:05 PM

I am having some difficulties with some validation controls on a custom form. What is wrong with this code?

<div class="CommonFormFieldName">
   <CSControl:ResourceControl ID="ResourceControl4" runat="server" ResourceName="CreateNewAccount_ZipCode" />
           </div>
               <div class="CommonFormField">
          <asp:TextBox id="ZipCode" runat="server" MaxLength="128" columns="40" />
           <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator1"
                                         ControlToValidate="ZipCode" EnableClientScript="false"
                                         ErrorMessage="Zip code must be of the form 11111-1111"
                                         InitialValue="" width="100%" cssclass="validationWarning"
                                         ValidationExpression="\d{5}(-\d{4})?">**
                                </asp:RegularExpressionValidator>
               </div>

 

 
  • Post Points: 5 |

All Replies

Page 1 of 1 (1 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com