验证问题 [英] problem with validations

查看:63
本文介绍了验证问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用验证器进行验证,但单击按钮时事件未触发意味着我使用两个按钮我想在提交按钮上显示错误消息,还有另一个按钮,其他单击其他按钮我要显​​示文本框。但如果我使用验证器然后事件不会点击其他按钮..plz帮助我?

I am using validator for validations but event not fire on clicking the buttons means i am using two buttons i want to show error message on submit button and there is another button which is other on clicking other button i want to show textbox.but if i use validators then event not fire on clicking other button..plz help me?

推荐答案

你好,

你添加验证组对于要激活验证的文本框和按钮,并为其保留一个空的验证组,但是要激活事件。



希望它有帮助'是你...
Hello,
you add validation group for textbox and button on which you want to fire validation and left an empty validation group for that but which you want to fire event.

Hope it help''s you...


将ValidationGroup =MyValidation设置为验证器控件和要进行验证的按钮
Set ValidationGroup="MyValidation" to both validator control and the button on which you want to validation should takes place


这篇关于验证问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆