Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Session["Phong"] != null)
                {
                    DataTable dt = xl.ThongTinPhong(Session["Phong"].ToString());
                    lb_lau.Text      = dt.Rows[0]["TenLau"].ToString();
                    lb_gia.Text      = dt.Rows[0]["GiaPhong"].ToString();
                    lb_tenphong.Text = dt.Rows[0]["TenPhong"].ToString();
                    lb_mota.Text     = dt.Rows[0]["MoTa"].ToString();
                }
                if (Session["DN"] != null)
                {
                    txt_masv.Text = Session["DN"].ToString();
                }
                else
                {
                    Server.Transfer("DangNhap.aspx");
                }
            }

            txt_ngaydangky.Text = DateTime.Today.ToShortDateString();
        }