Beispiel #1
0
    public void Selectanswerfromquiz()
    {
        BLLGradeBook objbll = new BLLGradeBook();

        objbll.Course_code = lblcoursecode.Text;
        objbll.Name        = lblquizname.Text;
        objbll.Rollno      = user;
        List <BLLGradeBook> objlist = new List <BLLGradeBook>();

        objlist = objbll.Selectanswerfromquiz(objbll);
        if (objlist.Count > 0)
        {
            attempt_question = objlist[0].Attempt_question;
            int coor = Convert.ToInt32(objlist[0].Obtained_mark);

            int tomark = Convert.ToInt32(lbltotalmarks.Text);
            int marks  = tomark / no_of_question;
            correct = Convert.ToString(coor * marks);
        }
    }