Home > Error Message > Custom Validator Error Message Javascript

Custom Validator Error Message Javascript


What's the fastest way to generate a 1 GB file containing only random numbers? Secondly, if the user provides a phone number (for example 93493) that is invalid then it displays the second error message. Then add a CustomValidator Control to the aspx page by going to the ToolBox then under that click Validation, select CustomValidator, then drag it to the page. The client-side javascript looks like this: validatePhoneNumber(sender, args) { cleanNumber = args.Value.replace(/\D/, ""); country = $("#" + CountryID).get(0).value; switch (country) { case "North America": args.IsValid = validateNAPhoneNumber(cleanNumber); if (!args.IsValid) sender.errormessage = http://digitalezines.com/error-message/create-error-message-javascript.html

ASP.net's validators are the obvious choice, but when you have employed an AJAX control you need to validate the entry on the client's browser. You will be notified via email when the author replies to your comment. Labels: ASP.Net, Code Sample 1 comment: w3c said... Mountainering with 6 y.o.

Asp.net Custom Validator Change Error Message Server Side