按钮母版忽略验证 [英] Button masterpage ignore validation
本文介绍了按钮母版忽略验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好!
我有个问题.单击母版页的按钮时,我想忽略或禁用表单的验证.
我在母版页的标题中有一个按钮,可以从网上注销,而母版页有几种形式.为了防止用户插入错误的信息,我在这些表格中有一个验证组.
当我单击母版页的按钮时,此验证有效,并且不允许我从Web上注销.
我不知道有什么可以帮助我的.
非常感谢您!
Hi everyone!!
I have a problem. I want to ignore or disable the validation of a form when I click in a button of the master page.
I have in the master page a button in the header, to logout from the web and I have a few of forms with the master page. I have in these forms a validation group in order to prevent that the user insert bad information.
When I click the button of the master page, this validation works and don´t let me logout from the web.
I don´t know if anything can help me.
Thank you very much!!
推荐答案
为什么您不只是在不应该进行验证的按钮上进行设置
Why don''t you just set on the button that should not do the validation following
<asp:Button CausesValidation="False" />
干杯
Cheers
这篇关于按钮母版忽略验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文