Add below code to your head section of page under script tag.
function chkPANLen(sender, args) { var PANno = document.getElementById("").value; var pan = /^([A-Z a-z]{5})+([0-9]{4})+([A-Z a-z]{1})$/; if (!(PANno.match(pan))) { args.IsValid = false ; return; } args.IsValid = true ; }Below is the code to validate your control
Pan No. :Reference: Muthukumar (http://nadarmuthukumar.blogspot.in)
0 comments:
Post a Comment