ASP ChangePassword控件定制 [英] asp changepassword control customization

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

问题描述

有没有办法自定义文本框的ASP ChangePassword控件?

 < ASP:的ChangePassword ID =myChangePasswordnewpasswordregularex pressionerrormessage =错误:您的密码必须至少为5个字符长,至少包含一个数字和一个特殊字符。
=服务器OnChangingPassword =ChangingPassword
OnChangedPassword =ChangedPasswordOnCancelButtonClick =CancelClick>< / ASP:&的ChangePassword GT;

例如我想前场说当前密码,而不只是密码,这可能吗?

谢谢!


解决方案

 < ASP:的ChangePassword ID =ChangePassword1=服务器
    PasswordLabelText =当前密码:>
< / ASP:&的ChangePassword GT;

这是你想要的吗?

Is there a way to customize the textboxes in an ASP changepassword control?

<asp:ChangePassword id="myChangePassword" newpasswordregularexpressionerrormessage="Error: Your password must be at least 5 characters long, and contain at least one number and one special character." 
runat="server"  OnChangingPassword="ChangingPassword" 
OnChangedPassword="ChangedPassword" OnCancelButtonClick="CancelClick"></asp:ChangePassword>

For example I would like the top field to say Current Password instead of just Password, is this possible?

Thanks!

解决方案

<asp:ChangePassword ID="ChangePassword1" runat="server" 
    PasswordLabelText="Current Password:">
</asp:ChangePassword>

Is this what you want?

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

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