Author: baoky | Posted on: 9/9/2008 11:11:19 AM | Views : 299

Hi , I got a question to ask in regards to my school project development.
 
Basically i am doing a ASP webform that is about surveying.
 My survey have


Question and Answer

Question is base on database query to my question table and grab the questionValue
 
I am able to display the question.

The problem is I have to generate radiobuttonlist and add it to panel1 as a control dynamically base
on the amount of questions i have.

I am not allow to use gridview for this situation as the layout is not as what i wanted.

I do something like
dim i as integer
i=1
 
'some code above... generate question
'a while something.read() loop
while condition 
Dim radio1 as new Radionbuttonlist
radio1.id = i
radio1.items.add("yes")
radio1.items.add("no")
i+=1
Panel1 ...

Go to the complete details ...