Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
        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;
        }