asp.net – 我可以在服务器端调用CustomValidator方法而无需分配ControlToValidate吗?
我有来自同一组的3个RadioButton,每个radioButton都启用了它的列表框. 我想检查是否检查了radiobutton,以及是否从列表框中选择了项目. 所以我使用CustomValidator只使用服务器端方法来检查条件并触发特定的ErrorMessage. 我的问题是,我可以调用此方法无法将customValidator分配给控件,因为我有3个可能的radioButtons? 谢谢