0
Hi Siri,
I don't know about your requirement. If you want to show single question at the same time then follow this procedure.
1) Question (Use the Label control to display the question)
0 option1 (Use the radio button and use the image control next to that)
0 option2
0 option3
0 option4
The radio button should have the groupname to make sure that they can select any one among four option.
The question test has to be comes from file or database, so it should be assigned to the label control. The image or image url has to be assigned to four images in all the options.
When the user click on any one the radio button then you can get the option is 1-4. If they click first option then you know answer is a. You can store the question number and answer in the DataTable or some where. Because the user can go previous and next.
When click on the next you need to pass the query string with the next id to the same page. Similarly you need to get the answer for all the question and click on the submit you need to store the result on the sql server table and check this result against original result.
If you want to show all the questions and options in the same page then you need to use any the ASP.Net data controls.
For example DataList control,
You have to get all the questions and options in one shot and need to design the data control according to that.
In the Item Template, you need to design the question and four options. The DataSet has to be binded with this datalist. Now the user can see all the questions and options.
When click on the Submit button, you need to iterate the DataList control and get the answered question and store it in the sql server table.
If you have any question then let me know.
