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 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

Renjith V SPosted May 16, 2014, 2:29 AM
Anupam SinghPosted May 16, 2014, 1:14 AM
have a look :
http://msdn.microsoft.com/en-us/library/aa479045.aspx