RequiredFieldValidator have to click twice

后端 未结 7 2048
遇见更好的自我
遇见更好的自我 2020-12-17 05:52

I have run into the same problem as described here.

Only the question is marked as answered with only an explanation as to why you may have to click twice when using

7条回答
  •  离开以前
    2020-12-17 06:03

    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.

    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.

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

提交回复
热议问题