protected void Page_Load(object sender, EventArgs e) { string selectedModule = Session["selectedModule"].ToString(); ClassExam loadData = new ClassExam(); loadData.LoadExamQuestions(this, selectedModule); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Label lblloggedInStudent = this.Master.FindControl("lblLoggedInUser") as Label; lblloggedInStudent.Text = Session["loggedInUser"].ToString(); Session["btn13Color"] = "btn btn-primary btn-circle"; int pageIndex = 12; ClassExam loadData = new ClassExam(); loadData.LoadExamQuestions(lblQuestion13, rbListQuestion13, pageIndex, hf13, hfCorrectAns13); rbListQuestion13.SelectedIndex = Convert.ToInt32(Session["rbListQuestion13"]); string studentId = Session["loggedInUser"].ToString(); int questionAttempt = Convert.ToInt32(Session["questionAttempt"]); int providedAnswer = rbListQuestion13.SelectedIndex + 1; string selectedModuleId = Session["selectedModule"].ToString(); int correctAnswer = Convert.ToInt32(hfCorrectAns13.Value); loadData.ReduceExamMarks(studentId, questionAttempt, providedAnswer, selectedModuleId, correctAnswer); } }