Exemple #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            cQuizz   = quizzContext.GetByIdStringEager(Request.Params.Get("quizz"));
            linkedUv = uvContext.GetById(cQuizz.IdUv);
            user     = identityContext.GetById(Context.User.Identity.GetUserId());

            isProf = user.Role.Equals("Prof");
            Button_Rep_Quizz.Enabled = !isProf;

            setQuizzInfos();


            int count = 1;

            foreach (Question question in cQuizz.Questions)
            {
                string questionNumber = count.ToString();
                setQuestion(panel_Questions_Container, question, questionNumber);
                count++;
            }
        }