A voir également:
- Cocher et décocher un checkbox
- Case à cocher excel - Forum MacOS
- Supprimer case à cocher excel - Forum Excel
- Raccourci clavier case à cocher - Forum Clavier
- Enlever une case à cocher excel 2007 ✓ - Forum Excel
- Case a cocher - Forum Word
1 réponse
j'ai ecrit ce code mais ça ne marche pas pour recacher le password
asp :
<asp:TextBox id="pass" TextMode="password" runat="server" />
<asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="True"
oncheckedchanged="CheckBox1_CheckedChanged"
style="font-weight: 700; font-style: italic" Text="afficher le mot de passe" />
C# :
protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{
if (CheckBox1.Checked)
pass.TextMode = TextBoxMode.SingleLine;
else
pass.TextMode = TextBoxMode.Password;
}
asp :
<asp:TextBox id="pass" TextMode="password" runat="server" />
<asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="True"
oncheckedchanged="CheckBox1_CheckedChanged"
style="font-weight: 700; font-style: italic" Text="afficher le mot de passe" />
C# :
protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{
if (CheckBox1.Checked)
pass.TextMode = TextBoxMode.SingleLine;
else
pass.TextMode = TextBoxMode.Password;
}