protected void Page_Load(object sender, EventArgs e) { Session["selectedTask"] = null; if (Session["User"] == null) Response.Redirect("Login.aspx"); User u = (User)Session["User"]; ts = u.MyTasks; MyTasksView.DataSource = ts; MyTasksView.DataBind(); lblMyTasksUsername.Text = u.Username; }
protected void Page_Load(object sender, EventArgs e) { Session["editTask"] = null; Session["selectedTask"] = null; WorkPackage sw = (WorkPackage)Session["selectedWorkPackage"]; if (Session["User"] == null) Response.Redirect("Login.aspx"); else{ workPackageTasks = sw.loadWorkPackageTasks(); TasksView.DataSource = workPackageTasks; TasksView.DataBind(); } lblTasksWorkPackagename.Text = sw.Name; }