Пример #1
0
        private void LoadThongTinHocSinh(string MaSV)
        {
            DataTable data = SinhVien.LoadSVByMaSV(MaSV);

            if (data.Rows.Count > 0)
            {
                txtMaSV.ReadOnly = true;
                txtMaSV.Text     = data.Rows[0]["sMaSV"].ToString();
                txtHoTen.Text    = data.Rows[0]["sTenSV"].ToString();
                txtLop.Text      = data.Rows[0]["sLop"].ToString();
                txtGioiTinh.Text = data.Rows[0]["sGioiTinh"].ToString();
                txtNgaySinh.Text = data.Rows[0]["dNgaySinh"].ToString();
                txtEmail.Text    = data.Rows[0]["sEmail"].ToString();
            }
        }