protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{
if (IsPostBack)
{
txtCl.Text = TextBoxMode.SingleLine;
}
else
{
txtCl.TextMode = TextBoxMode.Password;
}
}
but it doesnt work..
How to change the textboxmode property on checkbox click ?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Feb 18, 2015, 12:28 AM EST
protected void CheckBox1_CheckedChanged(object sender, EventArgs e) { if (IsPostBack) { if(CheckBox1. Checked) { txtCl.Text = TextBoxMode.SingleLine; } else { txtCl.TextMode = TextBoxMode.Password; } } }hi it will help you to get the solution