is used.and in sql database datatype is bit.
but when i checked or unchecked this box the value is always false in database. i googled but in vain.
protected void txtIsPaid_CheckedChanged(object sender, EventArgs e) { if (txtIsPaid.Checked == true) { EmployeeLeave empleave = new EmployeeLeave(); empleave.IsPaid = Convert.ToBoolean(txtIsPaid.Text); } } 
Replies
Know the answer? Post it — somebody with the same question will find it here.