Validation By Function ASP.Net

<%@ Page %>


Regular Expression Validator Example



Zipcode:     ControlToValidate="_zipcode"
  Display="static"
  ErrorMessage="Zip code must be of the form 11111-1111"
  InitialValue="" width="100%" runat=server
  ValidationExpression="\d{5}(-\d{4})?">**