JJones Posted August 1, 2003 Posted August 1, 2003 Hi, I'm new to this forum and to programming also. I've gone and landed myself a project and really need some pointers so that I can get it done. I'll describe the thing that needs doing:- I need a web form with 200 questions on it, numbered 1 - 200. The 200 questions are divided into 10 categories. Questions 1, 11, 21, 31 etc. are in category "A" Questions 2, 12, 22, 32 etc. are in category "B" and so on. So within the 200 Questions I have 10 categories "A" - "J" each containing 10 questions. Are you following this? Each question has 3 possible answers, Yes, No or Maybe. For each of the 200 Questions, the "Yes" answer has a score the "No" answer has a score and the "Maybe" answer has a score. The value of the "Yes" "No" or "Maybe" varies for each of the 200 questions. Still following? When The 200 Questions are answered, I need to get a total score for each category ("A"-"J"). Then I need to give each score a value i.e. if from answering the questions the person scored 92 in category "A", then that would be a value of 8. Finally I need to display the values on a line graph which would be displayed in the browser of the person answering the questions. Any pointers on how I can get this done are gratefully received. Quote
Moderators Robby Posted August 2, 2003 Moderators Posted August 2, 2003 You can store the questions in a database, perhaps table1 with a column each for IDNumber (1-200), Question, Answer. And table2 would be Categories holding the range of questions that fall into that category. Do you have a layout in mind? Datagrid, textboxes etc... Quote Visit...Bassic Software
JJones Posted August 2, 2003 Author Posted August 2, 2003 I thought I could have 200 radiobuttonlist controls each with 3 items, on the page. The questions would be diplayed on labels. Then I hope I could write code that checks which item had been selected on each of the radiobuttonlists and store the selectedIndex in a array with 200 items. I don't know how I would then give each of the items in the array their correct value and then add them up within the 10 catogories, but I think that would work?? Quote
Moderators Robby Posted August 2, 2003 Moderators Posted August 2, 2003 *Thinking out loud here* Perharps create only 10 sets of radibuttonlists, (one for each category) once the user answers the first question from each category (1 to 10) then Postback (click a button) and you then use the same list to display the next set (11 to 20). Quote Visit...Bassic Software
JJones Posted August 2, 2003 Author Posted August 2, 2003 Thanks Robby What would be the benefit of having just the 10 radiobuttonlists on the page? I thought that I could put the 200 on the one page and use the selectedindex.change event to write a value to a 2d array and then evaluate the 200 items in the array and assign a score to each. Then add up the score for each catagory and use those 10 values to pull text from a database. I'm sure that what I want to do is pittifully easy, but I am VERY new to this! Quote
Moderators Robby Posted August 2, 2003 Moderators Posted August 2, 2003 I think 200 sets of anything on one page is too much. It's up to you if you prefer it that way. Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.