示例#1
0
    private void GioiThieu_TheoID()
    {
        info.MaGioiThieu = int.Parse("0" + Request.QueryString["info_id"].ToString());
        DataTable dt = info.Gioithieu_theoID();

        if (dt.Rows.Count > 0)
        {
            DataRow row = dt.Rows[0];
            ddlDichvu.Text      = row["loaitin_ma"].ToString();
            txtTitle.Text       = row["tieude"].ToString();
            lblHeadingText.Text = row["DienGiai"].ToString();
            editor.Text         = row["noidung"].ToString();
            txtSource.Text      = row["NguonTrichDan"].ToString();

            btnSave.Visible      = false;
            btnUpdate.Visible    = true;
            btnDeleteAll.Visible = false;
            btnCancel.Visible    = true;
        }
    }