gpt4 book ai didi

dotnetnuke - 如何使 DotNetNuke Captcha 控件在留空时显示错误

转载 作者:行者123 更新时间:2023-12-03 17:57:14 25 4
gpt4 key购买 nike

我在我的页面上进行了验证码控制:

 <dnn:CaptchaControl ID="CaptchaControl1" runat="server" CaptchaHeight="50px"    CaptchaWidth="150px" ErrorMessage="incorrect"     />

如果验证码不正确,将显示错误消息,但如果它留空,则显示没有错误。有什么方法可以让它在空白时显示错误?

谢谢

最佳答案

嗯,我不确定,但我会尝试:

asp:RequiredFieldValidator

在那里你可以输入属性:
ControlToValidate="yourCaptchaControlID"
Display="Dynamic"
Enabled="True"

也许您必须在验证码控件中设置以下属性:
CausesValidation="True"

这也是工作客户端。

希望这可以帮助。
最好的问候,没有。

关于dotnetnuke - 如何使 DotNetNuke Captcha 控件在留空时显示错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9409402/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com