PasswordStrength控件给出错误 [英] PasswordStrength control gives error

查看:79
本文介绍了PasswordStrength控件给出错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我下载了Ajax Toolkit,并将其添加到VS 2008中的工具箱面板中.我安装了Microsoft .Net4.

当我使用任何ajax控件时,都会发生以下问题.例如,使用PasswordStrength时发生以下错误:
"PasswordStrength1"的TargetControlID无效.该值不能为null或为空.


为了解决此问题我该怎么办?
感谢

Hi,

I download Ajax Toolkit and added it to my toolbox panel in VS 2008. I installed Microsoft .Net 4.

When i use any ajax control, the below problem happens. For example to use PasswordStrength below error happend:
The TargetControlID of ''PasswordStrength1'' is not valid. The value cannot be null or empty.


What should i do in order to resolve this problem?
Thanks

推荐答案

好,您需要阅读/了解如何使用AjaxControlToolkit控件.

很明显,您尝试使用PasswordStrength控件.使用该控件时,尚未将控件的动作/触发器分配给任何其他控件.
例如,您希望此控件检查TextBoxA中给定的密码是否正确.页面上可以有多个文本框.因此,为了告诉PasswordStrength控件您要检查TextBoxA值的强度,需要将其连接到它.可以使用PasswordStrength控件的属性"TargetControlID"完成此连接.

只需将属性TargetControlID ="txtBoxPassword"放进去,就应该完成了.

在此处查看示例:
PasswordStrength演示 [
Well, you need to read/know on how to use AjaxControlToolkit controls.

It''s very clear that you tried to use a PasswordStrength control. When you were using it, you have not assigned controls action/trigger connected to any other control.
For example, you want that this control checks if the given password in TextBoxA is fine or not. There can be multiple textboxes on the page. Thus, In order to tell PasswordStrength control that you want to check TextBoxA value''s strength, you need to connect that to it. This connection can be done using property ''TargetControlID'' of the PasswordStrength control.

Just put the property TargetControlID="txtBoxPassword" and you should be done.

Look at the sample here:
PasswordStrength Demonstration[^]


这篇关于PasswordStrength控件给出错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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