1
Reply

how to change the textboxmode property on checkbox click ?

raj kadam

raj kadam

Feb 18 2015 5:21 AM
573
 protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
    {
        if (IsPostBack)
        {
            txtCl.Text = TextBoxMode.SingleLine;


            }
        else
        {
            txtCl.TextMode = TextBoxMode.Password;
        }
    }
but it doesnt work..

Answers (1)