且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何冒泡验证错误的子控件父控件

更新时间:2023-10-11 09:38:22

做一个 page.validate(customValidator1); 其中customValidator1是你的验证组。然后火了 Page.IsValid(); 如果第一组验证失败,那么Page.IsValid()将返回false。在你的逻辑实现这一点。

Do a page.validate("customValidator1"); where customValidator1 is your validation group. Then fire a Page.IsValid();If the first group validation fails then Page.IsValid() will return false. Implement this in your logic.