protected void Page_Load(object sender, EventArgs e) { CarryWorkCalculate c = new CarryWorkCalculate(HttpContext.Current.User.Identity.Name); GridView1.DataSource = c.AcademicService().ToList(); GridView1.DataBind(); Label1.Text = c.SumOfService().ToString(); }
protected void Page_Load(object sender, EventArgs e) { if (dr.Header() || dr.Dean()) { Session["OtherCarryUserName"] = HttpContext.Current.User.Identity.Name; Response.Redirect("~/CarryShowOnly/CarryCalculateMain.aspx"); } durationId = dr.getDurationId(); if (!IsPostBack) { CarryWorkCalculate cr = new CarryWorkCalculate(username); ASPxGridView1.DataSource = cr.AcademicService().ToList(); ASPxGridView1.DataBind(); } }
private void FillGridView() { CarryWorkCalculate cr = new CarryWorkCalculate(username); ASPxGridView1.DataSource = cr.AcademicService().ToList(); ASPxGridView1.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { username = Session["OtherCarryUserName"].ToString(); durationId = Convert.ToInt32(Session["DurationId"]); if (!IsPostBack) { CarryWorkCalculate cr = new CarryWorkCalculate(username, durationId); ASPxGridView1.DataSource = cr.AcademicService().ToList(); ASPxGridView1.DataBind(); } AssessmentSystemsDBDataContext db = new AssessmentSystemsDBDataContext(); var q = (from p in db.Users where p.UserName == Session["OtherCarryUserName"].ToString() select p.Prefix.Prefix1 + "" + p.FirstName + " " + p.LastName).First(); FullName.InnerText = q; }