Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Userbll bl = new Userbll();
            if (Session["User"] == null)
            {
                Response.Redirect("../Login.aspx");
            }
            else
            {
                string username = Session["User"].ToString();
                if (bl.gethistorybooks(username) != null)
                {
                    datalis1.DataSource = bl.gethistorybooks(username);
                    datalis1.DataBind();
                }
                                
            }

        }