ASP.net disallow name to be in Password Field -
i need user entry in
tbname (textbox)
to not allowed possible password in password text box.
tbpass (textbox)
how go this? have validation in password field 8 characters, 1 uppercase etc, need not allow users name part of password creating.
use comparevalidator
notequal
option
<asp:textbox id="tbname" runat="server" /> <asp:textbox id="tbpass" runat="server" /><br> <asp:requiredfieldvalidator runat="server" controltovalidate="tbname" errormessage="name required"/><br> <asp:requiredfieldvalidator runat="server" controltovalidate="tbpass" errormessage="pass required"/><br> <asp:comparevalidator runat="server" controltovalidate="tbname" controltocompare="tbpass" type="string" operator="notequal" errormessage="password cannot same name" />
Comments
Post a Comment