Issue with chaining Required Field and Regular Expression validators for Textbox controls

后端 未结 4 962
失恋的感觉
失恋的感觉 2021-01-19 10:55

I\'m trying to implement a form validation with ASP.net and I have tried every solution suggested here but the best one was on aspsnippets.com so far.

My code is lik

4条回答
  •  情歌与酒
    2021-01-19 11:16

    you can try Page_ClientValidate() in javascript instead of looping across validator. I believe this will validate all the validators on the page. It also takes in parameter which "Validation group name" if you want to validate specific controls bound by particular validation group.

提交回复
热议问题