コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Session["LoaiPhong"] = xl.LoaiPhong();
                if (Session["LoaiPhong"] != null)
                {
                    ddlLoaiPhong.DataSource = (DataTable)Session["LoaiPhong"];

                    ddlLoaiPhong.DataValueField = "MaLoai";
                    ddlLoaiPhong.DataTextField  = "TenLoai";
                    ddlLoaiPhong.DataBind();
                }
                LoadAll(xl.CheckPhongTrong());
            }
        }