Triggering multiple validation groups with a single button?

后端 未结 3 2006
闹比i
闹比i 2020-12-16 16:54

Let\'s say the page TestPage.aspx has two controls. The first control is an address control that has a validation group called \"AddressGroup\". This group contains severa

3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-16 17:30

    Are you talking client side or server side validation? Jamie's answer is spot on for server side, but for client side validation you will probably need to write your own JS function that will trigger validation on all three groups in concert.

提交回复
热议问题