Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //load examsubmisions
            //bind gv
            List <Submission> submissions = ExamResultDBHelper.GetSubmissions(this.ExamId);

            gvSubmissionList.DataSource = submissions;
            gvSubmissionList.DataBind();
        }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            aBack.HRef = string.Format("{0}?ExamId={1}", URLDefs.Submissions, this.ExamId);

            List <Submission> submissions    = ExamResultDBHelper.GetSubmissions(this.ExamId);
            Submission        thisSubmission = submissions.FirstOrDefault(s => s.UserID == this.SubmittedUserId);

            if (thisSubmission != null)
            {
                litUserID.Text      = thisSubmission.UserID.ToString();
                litUsername.Text    = thisSubmission.UserName;
                litFullName.Text    = thisSubmission.FullName;
                litScore.Text       = thisSubmission.Score.ToString();
                litUpdatedDate.Text = thisSubmission.UpdatedOn.ToString();
            }
        }