Example #1
0
    private void LoadData(string Id)
    {
        try
        {
            HoTroTrucTuyen ht = new HoTroTrucTuyen();
            DataSet ds = ht.SelectByID(Convert.ToInt32(Id));

            if (ds.Tables[0].Rows.Count > 0)
            {
                txtHoTro.Text = ds.Tables[0].Rows[0]["TenHoTro"].ToString();
                txtHoVaTen.Text = ds.Tables[0].Rows[0]["HoVaTen"].ToString();
                txtEmail.Text = ds.Tables[0].Rows[0]["Email"].ToString();
                txtYM.Text = ds.Tables[0].Rows[0]["YM"].ToString();
                txtDienThoai.Text = ds.Tables[0].Rows[0]["DienThoai"].ToString();
            }
        }
        catch (Exception ex)
        {
            Response.Write(ex.ToString());
        }
    }