CausesValidation属性 [英] CausesValidation property

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

问题描述

在我的Web应用程序的网页中,有一个搜索按钮.
对于此按钮,CausesValidation属性为true.

在texbox字段中有正则表达式验证器.
如果我在该文本框中输入了不正确的数据,然后单击搜索按钮,则该页面显示正确的验证页面,并且发回邮件受到限制.

但是在这种情况下,如果我再次单击搜索按钮,则会将该页面发回.

我不明白为什么会这样?

In my web application in web page there is a search button.
For this button CausesValidation property is true.

In a texbox field there is regular expression validator.
If I enter an incorrect data in that text box and click search button, the page is showing proper validating page and post back is restricted.

But in this scenario if I am clicking search button again the page is being posted back.

I cant understand why it is happening?

推荐答案

plz正确发送您的代码,
您可以向该邮件ID发送代码吗?
电子邮件已删除[/编辑]
plz send ur code correctly,
can u send code into this mail id
Email Removed[/Edit]


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

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