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

            if (ds.Tables[0].Rows.Count > 0)
            {
                txtHangSanXuat.Text = ds.Tables[0].Rows[0]["TenHangSanXuat"].ToString();
                txtThongTin.Text = ds.Tables[0].Rows[0]["ThongTin"].ToString();
            }
        }
        catch (Exception ex)
        {
            Response.Write(ex.ToString());
        }
    }