protected void Page_Load(object sender, EventArgs e) { if (Session["User"] == null) { Response.Redirect("../Login.aspx"); } if (!IsPostBack) { string s = Session["User"].ToString(); datlis1.DataSource = bl.getfav(s); datlis1.DataBind(); } }