예제 #1
0
    private void PopulateSection(string strname, string  StudentID)
    {
        int AssessmentOID=0;
        Sections section = new Sections();
        AssessmentOID = section.GetAssessmentOIDByAssessmentName(strname);
        Answer ans = new Answer();
        ans = ans.GetAnswerByAssessmentandStudentID(AssessmentOID, StudentID);
        if (ans != null)
        {
            lblDate.Text = Convert.ToString(ans.CreatedDate);

        }
        else
        {
            lblDate.Text = "";
        }
        GridViewSection.DataSource = section.GetSectionsWithScoreByAOID(AssessmentOID, lbtnID.Text.ToString());
        GridViewSection.DataBind();
    }