Hello all,
I am trying to figure out how to setup a dynamic arraylist, in which the arraylist will be variable in size depending upon the row it retrieves. In other word the question it retreives will have variable number of answers. One question might have 3 answers another might have 4 answers. The columns for unused answer choices will be assigned a null value.
I am using VB.NET 2005 through my ASP.NET page. My main goal is basically this.
Step 1. Select Answer Columns from table where Answer value is not Null
Step 2. Generate radiobutton listitems based on number of answer columns in the AnswersTable for the retrieved question.
Step 2A: assign generated list items the values from the answerchoice columns.
I mainly need help with steps 2 and 2A. I was looking at possibly interrating with a for i to x Next loop, where x is the last answer column available in the array to be assigned to the listitem If you need anymore clarification, please let me know.