示例#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();
    }
示例#2
0
 private void PopulateSection(string strname, string StudentID)
 {
     int AssessmentOID;
     Sections section = new Sections();
     AssessmentOID = section.GetAssessmentOIDByAssessmentName(strname);
     //GridViewSection.DataSource = section.GetSectionsByAssessmentOID(AssessmentOID);
     GridViewSection.DataSource = section.GetSectionsWithScoreByAOID(AssessmentOID, StudentID);
     GridViewSection.DataBind();
 }