protected void SubmitQuestions_Click(object sender, EventArgs e)
    {
        if (OptionA.Checked)
        {
            answercheck = "A";
        }
        else if (OptionB.Checked)
        {
            answercheck = "B";
        }
        else if (OptionC.Checked)
        {
            answercheck = "C";
        }
        else if (OptionD.Checked)
        {
            answercheck = "D";
        }
        else
        {
            answercheck = "N";
        }

        UserBO ob = new UserBO();

        ob.coursecode = Session["CourseSelected"].ToString();

        clsBLL    logicob       = new clsBLL();
        DataTable questiontable = logicob.QuestionTableCreatorBLL(ob);

        logicob.updateAnsweredBLL(rowno, answercheck, Session["CourseSelected"].ToString());

        Session["questioncount"] = countofQuestions;
        Response.Redirect("UserPresentTestCalculus.aspx");
    }
    protected void rightindicpicbutton_Click(object sender, EventArgs e)
    {
        rowno = startingQuestion - 1;
        startingQuestion++;
        if (startingQuestion > countofQuestions)
        {
            Response.Write("<script>alert('You are completed with your Questions click on submit');</script>");
            SubmitQuestions.Visible = true;
        }
        else
        {
            if (OptionA.Checked)
            {
                answercheck = "A";
            }
            else if (OptionB.Checked)
            {
                answercheck = "B";
            }
            else if (OptionC.Checked)
            {
                answercheck = "C";
            }
            else if (OptionD.Checked)
            {
                answercheck = "D";
            }
            else
            {
                answercheck = "N";
            }

            UserBO ob = new UserBO();
            ob.coursecode = Session["CourseSelected"].ToString();

            clsBLL    logicob       = new clsBLL();
            DataTable questiontable = logicob.QuestionTableCreatorBLL(ob);

            StatusBar.Text = questiontable.Rows[rowno][7].ToString();

            logicob.updateAnsweredBLL(rowno, answercheck, Session["CourseSelected"].ToString());

            displayQuestion(questiontable);

            if (OptionA.Checked)
            {
                OptionA.Checked = false;
            }
            else if (OptionB.Checked)
            {
                OptionB.Checked = false;
            }
            else if (OptionC.Checked)
            {
                OptionC.Checked = false;
            }
            else if (OptionD.Checked)
            {
                OptionD.Checked = false;
            }
        }
    }