The following is an example of validating Phone Mask using classic ASP-db.

Fk

<%
' Validator requires the 2000 GOLD dll
' It also needs: ASPdbValidator.jar in the folder specified in X.dbValidatorParams
Set X = Server.CreateObject("ASP.db")
X.dbUnit = 2
X.dbDSN = "NWIND"
X.dbDBType="Access"
X.dbMode="Grid"
X.dbSQL="Select employeeid, firstname, lastname, homephone FROM Employees"
X.dbImageDir = "/aspdb/images/"
X.dbEditParams = "TableName=Employees,BookMarkFlds=employeeid"
X.dbNavigationItem="next, prev, update"
X.dbNavigationIcon="std"
X.dbEditFlds = "(;,[]|~)employeeid, HomePhone[||||1~PHONE~1~~~~~Invlaid phone Number]"
X.dbValidatorParams = "../jars"
X.ASPdb
%>