private void loadGioiThieu(int magioithieu) { BUSGioiThieu BUSGioiThieu = new BUSGioiThieu(); int MaBaiViet = int.Parse(Request.QueryString["id"]); GIOITHIEU GIOITHIEU = BUSGioiThieu.TimKiem(MaBaiViet); this.lblNoiDungBaiViet.Text = GIOITHIEU.NoiDung; lblTieuDe.Text = GIOITHIEU.TieuDe; lblTieuDe.Font.Bold = true; lblTieuDe.Font.Size = 18; }
protected void Page_Load(object sender, EventArgs e) { //Thong tin nguoi dung if (!IsPostBack) { if (Request.QueryString["id"] != null) { //lay ma int magioithieu = int.Parse(Request.QueryString["id"]); //lay thong tin va load len cac textbox BUSGioiThieu BUSGioiThieu = new BUSGioiThieu(); GIOITHIEU lpDTO = BUSGioiThieu.TimKiem(magioithieu); this.txttengioithieu.Text = lpDTO.TieuDe; this.txtnoidung.Content = lpDTO.NoiDung; } } }