Click here to Skip to main content
15,918,808 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi ,

Am currently working on online examination web project.. i have a table like this..

sno question answer1 answer2 answer3 answer4 correctanswer

01 sql stands? structured simple short none structured

i just want to bind these 4 answers to my radiobuttonlist which is present inside the gridview.. am not able to do that so please help me ....
Posted
Updated 11-Jan-11 20:43pm
v3
Comments
OriginalGriff 12-Jan-11 3:19am    
Sorry, but that doesn't make much sense.
Please edit yoiur question again, and try to explain in more detail what your problem is.

1 solution

Ok.

Steps:
1. Get the answers from DB for the given question (separately or in one shot along with question)
2. You should have a dataset with 4 answers.
3. Use this to bind the radiobutton the way you like - pick one by one if you want

For data, lets say, you run a query and get data related to this question from DB, something like:
SQL
SELECT question, answer1, answer2, answer3, answer4
FROM myQTable
WHERE sno = 1

Try!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900