拥有的RequiredFieldValidator单击两次 [英] RequiredFieldValidator have to click twice

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

问题描述

我遇到了同样的问题,<一个href=\"http://stackoverflow.com/questions/7086471/requiredfieldvalidator-requires-user-to-click-twice\">as这里描述。

I have run into the same problem as described here.

唯一的问题是被标记为只有一个解释,为什么你可能回答使用一个RequiredFieldValidator时输入字段点击两次 - 再一次作为一个文本框的模糊(例如)将修正验证,然后实际上张贴的形式。

Only the question is marked as answered with only an explanation as to why you may have to click twice when using a RequiredFieldValidator on input fields - once as the blur of a textbox(for example) will correct the validation and then again to actually post the form.

我不希望有两次单击一个按钮!有谁知道一个解决方案或解决方法呢?

I don't want to have to click a button twice! Does anyone know a solution or workaround to this?

推荐答案

道歉不张贴code previously我以为这是一个标准的问题与的RequiredFieldValidator ,但此后实现了我的具体问题是从哪里来一个 CompareValidator ,用于确保输入的密码相匹配。

Apologies for not posting code previously I assumed this to be a standard problem with the RequiredFieldValidator, but have since realised my particular problem was coming from a CompareValidator, used to ensure entered passwords matched.

该CompareValidator是造成我描述的问题,导致我必须点击从外地客场能够点击后按钮之前模糊和验证。

The CompareValidator was causing the issue that I described, causing me to have to click away from the field to blur and validate, before being able to click on the post button.

我不知道为什么,但距离的动态的修改 CompareValidator 的显示来的静态的已清除问题的。

I'm not sure why but changing the Display of the CompareValidator from Dynamic to Static has cleared the problem up.

这篇关于拥有的RequiredFieldValidator单击两次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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