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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -