G
Guest
Hi all,
I have to design a quiz page which includes up to 200 questions. What users
do is they start the quiz, go to page1 with question1, enter some answers,
click next to go page2 with question2, and so on until they get to page100
then they will hit submit button to submit their answers.
My approach right now is: In one web form only,
- load all 200 questions (or depending on the requirement, could be 20 or
200 questions, ie the number of questions varies) into a dataset,
- then depends on the dataset size, dynamically create the same number of
panel controls to contain the questions and the textboxes for the answers,
- add the panel controls to the web form.
- then depends on the which question the user is at, I'll show the
corresponding panel and hide the other panels.
That way I can retain all user answers in one page.
However, since the page is so big ( could grow up to 200 panels), I'm not
sure this is a good approach.
My question, is it ok with this approach performance wise. Any idea of how
to do it. Thanks in advance.
I have to design a quiz page which includes up to 200 questions. What users
do is they start the quiz, go to page1 with question1, enter some answers,
click next to go page2 with question2, and so on until they get to page100
then they will hit submit button to submit their answers.
My approach right now is: In one web form only,
- load all 200 questions (or depending on the requirement, could be 20 or
200 questions, ie the number of questions varies) into a dataset,
- then depends on the dataset size, dynamically create the same number of
panel controls to contain the questions and the textboxes for the answers,
- add the panel controls to the web form.
- then depends on the which question the user is at, I'll show the
corresponding panel and hide the other panels.
That way I can retain all user answers in one page.
However, since the page is so big ( could grow up to 200 panels), I'm not
sure this is a good approach.
My question, is it ok with this approach performance wise. Any idea of how
to do it. Thanks in advance.