468,505 Members | 1,569 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,505 developers. It's quick & easy.

Need regular expression for at least 7 characters and at least 1 special chatacter

Been playing with asp:changepassword and have it looking OK except that I
can't elininate or change the title at the top that says "Change Your
Password". It's a repeat of my pages title.

But more importantly, I can't find the regular expression for at least 7
characters and at least 1 special character.

Can you help?

Thanks

<asp:changepassword id="ChangePassword1" runat="server"

NewPasswordRegularExpression = '@\"(?=.{7,})(?=(.*\W){1,})'

PasswordLabelText="Old password"

PasswordRecoveryText="1Your password must be at least 7 characters long, and
contain at least one special character"

SuccessText="SUCCESS"

SuccessTitleText="SUCCESS TILE"

UserNameRequiredErrorMessage="REQUIRED"

NewPasswordLabelText="New password"

PasswordRequiredErrorMessage="2Your password must be at least 7 characters
long, and contain at least one special character"

NewPasswordRequiredErrorMessage="3Your password must be at least 7
characters long, and contain at least one special character"
PasswordHintText = ""

NewPasswordRegularExpressionErrorMessage = "4Your password must be at least
7 characters long, and contain at least one special character">

</asp:changepassword>
Oct 3 '08 #1
0 1754

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Ron Adam | last post: by
15 posts views Thread by Roz Lee | last post: by
3 posts views Thread by Gopinath | last post: by
7 posts views Thread by Patient Guy | last post: by
6 posts views Thread by dotnetprogram | last post: by
5 posts views Thread by John | last post: by
2 posts views Thread by Mike Collins | last post: by
3 posts views Thread by Zach | last post: by
18 posts views Thread by Lit | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.