Hi,
I have 2 text boxes and 3 drop down lists as mandatory fields. I am using javascript and asp .net validator for validation. When I click on the submit button all the 5 validator should work. But in my code only one validator is working.
My javascript code is:
var Page_IsValid = false;
Page_IsValid =Page_ClientValidate('valgrpCode');
Page_IsValid = Page_ClientValidate('valgrpDescription');
Page_IsValid = Page_ClientValidate('valgrpCategory');
and my asp code is:
and also here i am showing "*" as mandatory message. But I need to change the color of label as mandatory message. I have added labels for each text boxes and drop down lists.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Anupam SinghRank #643 · 3.7K reputationPosted May 15, 2014, 9:14 PM EDT
have a look :
http://msdn.microsoft.com/en-us/library/aa479045.aspx
Renjith V SRank #5,293 · 304 reputationPosted May 15, 2014, 10:29 PM EDT