当文本框设置为验证控件时,按钮不会触发 [英] Button is not firing when textbox is set to validation control
本文介绍了当文本框设置为验证控件时,按钮不会触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在c#asp.net中使用不同的面板。在每个面板中,我有单独的下一个按钮。在一个面板中,我正在验证txtbox在下一个按钮触发时应该验证但是我的按钮没有触发的文本框。如果我使原因验证为假,那么文本框没有验证.....请帮我解决问题
I am using different panels in c# asp.net. In each panel I have separate next button. In one panel I am validating the textbox that txtbox should validate when next button is firing but my button is not firing. If I make cause validation false then textbox is not validating..... please help me what s the problem
推荐答案
嗨...!
您需要为此制作验证组....
例如:
如果一个文本框有电子邮件验证
和多个按钮在那里,那么只有那个特定的按钮和email_textbox有相同的验证组.. 。和其他应该不在那个组,所以其他按钮将正常工作....
: - )
Hi...!
you need to make validation group for this....
eg:
if a textbox having email validation
and multiple button are there on page then for only that particular button and email_textbox have same validation group... and other should be not in that group so other button will works fine....
:-)
这篇关于当文本框设置为验证控件时,按钮不会触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文