insert into [table](Question1,Question2,Question3) Values(Radiobuttonlist1.SelectedValue, RadioButtonlist2.SelectedValue, RadioButtonList3.SelectedValue).

Okay, survey has 82 questions and there are 82 radiobuttonlist to answer each question.
How do I loop through Questions field and insert the radiobuttonlist answer like;

Dim i as integer
for i = 1 through 82
insert into [table](Questions & i) Values(Radiobuttolist & i.SelectedValue)
Next i.

By the way I am doing this in C# so i++, kind of counter.

Thanks,
Ben

hi..

All these 82 questions has to be inserted with respective answer in a table .. so go for a event inside that u can add parameters to take hold of the data in a table..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.