Custom Validator for validate string
-
Hi there, i want to validate user input in the text box which take a document number to check in database, the input must be in this format SSD-SGZZ99-A0101 or SSD-SGZZ99-AE0101 [(3alpha)(-)(4alpha 2numeric)(-)(1 or 2alpha 4numeric)] Total 16 or 17 character, now can some one send me a sample to validate this requirement.... i also want to disable the button till this validation is not completed, once the user keyin the right number the button should be enable. any suggestion will be appreciated. i need the sample code to use the custom validator control. Regards Ybasha
-
Hi there, i want to validate user input in the text box which take a document number to check in database, the input must be in this format SSD-SGZZ99-A0101 or SSD-SGZZ99-AE0101 [(3alpha)(-)(4alpha 2numeric)(-)(1 or 2alpha 4numeric)] Total 16 or 17 character, now can some one send me a sample to validate this requirement.... i also want to disable the button till this validation is not completed, once the user keyin the right number the button should be enable. any suggestion will be appreciated. i need the sample code to use the custom validator control. Regards Ybasha
-
i need the script to validate some thing like this function validateDate() { var ptext = document.getElementById("TBDocNum"); if(ptext = ("(SSD)|(SSA)(-)(a-zA-Z0-9){4,2}(-)(a-zA-Z0-9){6,2})"); } but it not correct any help on this???
or can some one give me a simple to break this string SSD-SGZZ99-A0101 --> 16 character or SSD-SGZZ99-AE0101 --> 17 character to added in ValidationExpression="(SSD)|(SSA)(-)(a-zA-Z0-9){4,2}(-)(a-zA-Z0-9){6,2})" for regular expression validator. regards Ybasha
-
Hi there, i want to validate user input in the text box which take a document number to check in database, the input must be in this format SSD-SGZZ99-A0101 or SSD-SGZZ99-AE0101 [(3alpha)(-)(4alpha 2numeric)(-)(1 or 2alpha 4numeric)] Total 16 or 17 character, now can some one send me a sample to validate this requirement.... i also want to disable the button till this validation is not completed, once the user keyin the right number the button should be enable. any suggestion will be appreciated. i need the sample code to use the custom validator control. Regards Ybasha