raj kadam

raj kadam

  • NA
  • 92
  • 7.5k

how to change the textboxmode property on checkbox click ?

Feb 18 2015 5:21 AM
 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)