Multiple RequiredFieldValidators on page but they need to apply to different button clicks

前端 未结 2 847
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-13 05:16

I\'m working on a asp.net page and I have the following scenario:

I have 2 fields that have requiredfieldvalidators which need to \"fire\" their validation when butt

2条回答
  •  心在旅途
    2021-01-13 06:17

    Use validation groups. See the next article http://www.dotnet-guide.com/validationgroups.html.

提交回复
热议问题