我如何使用特定的按钮固定所需的字段验证器 [英] how i can fixed requiered field validator with specific button
本文介绍了我如何使用特定的按钮固定所需的字段验证器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
因此,当使用所需的字段验证器时,它将同时对它们进行验证,
我想用button1进行验证,
Thanks
解决方案
将button2的CausesValidation
属性设置为false
即
button2.CausesValidation = false ;
或在属性窗口中进行操作.
hi
i insert two button(button1,button2) in my page,
so when used requiered field validatorit it''s validate with both of them,
i want to do validate with button1,
thanks
解决方案
Set theCausesValidation
proprty for button2 to false
i.e.
button2.CausesValidation = false;
or do it from properties window.
这篇关于我如何使用特定的按钮固定所需的字段验证器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文