protected void ChkConsultar_CheckedChanged(object sender, EventArgs e) { CheckBox ChkConsultar = (CheckBox)sender; TreeListDataItem item = (TreeListDataItem)ChkConsultar.Parent.Parent; TableCell cell = item["FormaId"]; int Permiso = 0; if (ChkConsultar.Checked == true) { Permiso = 1; } else { Permiso = 0; } ClUsuario.Actualiza_Rol_Usuario(Convert.ToInt32(TxtUsuarioId.Text), Convert.ToInt32(cell.Text), Permiso, 1); }