0
I am building a login in Asp.net and I want to click on the checkbox to show the password to be shown.
Design page Asp
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="Titulo" class="divtitulo">
<asp:Label ID="lbl_administracao" runat="server" Text="Login Administração"></asp:Label>
</div>
<br />
<div id="Login" class="divlogin" runat="server">
<div id="wrapper">
<asp:Label ID="lbl_utilizador" runat="server" Text="Nome Utilizador:"></asp:Label>
<br />
<asp:TextBox ID="txt_utilizador" runat="server" Width="230px"></asp:TextBox>
<br />
<asp:Label ID="lbl_password" runat="server" Text="Palavra-Passe:"></asp:Label>
<br />
<asp:TextBox ID="txt_password" TextMode="Password" runat="server" Width="230px"></asp:TextBox>
<br />
<asp:CheckBox ID="chbox_mostrarpassword" runat="server" Text="Mostrar Palavra-Passe" />
<br />
<asp:Button ID="bt_login" runat="server" Text="Iniciar Sessão" />
</div>
</div>
Possible duplicate of Input type="password" with password display eye
– Ricardo Pontual
No the question is different! I want it when the checkbox is checked and not only when you are clicking
– José Gomes
I get it @Jose, but this question does what you need, which is to change the type of
input
, the rest is just make some small change in the code, the goal is the same, only it is not a reply of type copy and paste, but understanding is simple to do in your code– Ricardo Pontual
that didn’t work. Is it because it is an Asp.net with a Masterpage?
– José Gomes