protected void LinkButtonEditThongTinCaNhan_Click(object sender, EventArgs e) { PanelThongBaoThanhCong.Visible = false; PanelThongBaoThatBai.Visible = false; PanelEditThongTinCaNhan.Visible = true; PanelThongTinCaNhan.Visible = false; TextBoxHoTen.Text = LabelHoTens.Text; TextBoxEmail.Text = LabelEmail.Text; try { List <Group> ListGroup = Group.getQuery().ToList(); DropDownListNhom.DataSource = ListGroup; DropDownListNhom.DataBind(); DropDownListNhom.SelectedValue = HiddenFieldIDNhom.Value; } catch { DropDownListNhom.Items.Insert(0, new ListItem(LabelNhom.Text, HiddenFieldIDNhom.Value)); DropDownListNhom.SelectedValue = HiddenFieldIDNhom.Value; } TextBoxTaiKhoan.Text = LabelTaiKhoan.Text; TextBoxTaiKhoan.Enabled = false; TextBoxDonVi.Text = LabelKhoa.Text; TextBoxGhiChu.Text = StringHelper.ConvertBRToRN(LabelGhiChu.Text); }
protected void _QuanLyTaiKhoan() { List <QuanTriVien> ListGiangVien = QuanTriVien.getQuery().ToList(); CollectionPagerQuanLyTaiKhoan.DataSource = ListGiangVien; CollectionPagerQuanLyTaiKhoan.BindToControl = RepeaterQuanLyTaiKhoan; RepeaterQuanLyTaiKhoan.DataSource = CollectionPagerQuanLyTaiKhoan.DataSourcePaged; RepeaterQuanLyTaiKhoan.DataBind(); List <Group> ListGroup = Group.getQuery().ToList(); DropDownListNhom.DataSource = ListGroup; DropDownListNhom.DataBind(); }