Conducting a survey

I want to take a quiz using silverlight. This poll contains multiple questions and each question will have multiple options (Radio Buttons). The user must choose one answer. After the test completes, I need to display the result.

Is it better to ask questions and options in an XML document and then extract them into a silverlight class? If so, can anyone tell me the procedure to achieve it.

+2


a source to share


1 answer


Yes, it's better to store the questions / answers in a separate XML file. You can then upload the file using WebClient

, then de-seralize it into the Question object collection. Then you can display each question and answer set using something like DataForm

.



0


a source







All Articles