Geeks With Blogs


Rodney Vinyard - .NET & SQL Developer When all is said and done, more will be said than done September 2008 Entries
regex zip code 5 or 9 digits for "complete" ASP.NET zip code text box
Here is an example of Asp.NET Web page - "complete" zip code text box 1) regex for xxx -> ="^(\d{5}|\d{5}\-\d{4})" 2) zip code text box with a) regex RegularExpressionValidator b) RequiredFieldValidator <asp:TextBox ID="txtZip" runat="server" MaxLength="10" Width="100px" ></asp:TextBox> <asp:RegularExpressionVa... ID="RequiredFieldValidatorZip" ControlToValidate="txtZip" ValidationExpression="^(\d{... ErrorMessage="Zip code must be numeric nnnnn or nnnnn-nnnn." ......

Posted On Wednesday, September 24, 2008 2:40 PM

Copyright © Rodney Vinyard | Powered by: