protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) { string maNXB = GridView1.SelectedRow.Cells[0].Text; nxb = cn.GetNhaXuatBanByID(maNXB); if (nxb != null) { txtMaNhaXuatBan.Text = nxb.MaNhaXuatBan; txtTenNhaXuatBan.Text = nxb.TenNhaXuatBan; txtDiaChi.Text = nxb.DiaChi; txtSoDienThoai.Text = nxb.SoDienThoai; } ; }