protected void Page_Load(object sender, EventArgs e) { Page.Title = "Profile Page"; if (Session["UserName"] == null) { Response.Redirect("../HomePage.aspx"); } String sess = Session["UserName"].ToString(); _user.DataSource = RepositoryUser.GetProfile(sess); _user.DataBind(); }