Hello one n all
How to display multiple values from DB to front end one by one like i have a table called
Question
| q.id | qname | ans1 | ans2 | ans3 |
| 1 | samplequestion1 | 1 | 2 | 3 |
| 2 | samplequestion2 | 1 | 2 | 3 |
Like this
how to display using loop qname to lable on front end
i try like this
DataTable dt=new DataTable()
for(int i=0;i
{
Lable1.text=dt.rows[i]["qname"].tostring();
}
but didnt display all qname
Please solve this issue
Praveen KumarRank #395 · 6.4K reputationPosted Jun 11, 2015, 1:40 AM EDT
Praveen KumarRank #395 · 6.4K reputationPosted Jun 11, 2015, 1:45 AM EDT
Inathi Gqola83 reputationPosted Jun 11, 2015, 1:17 AM EDT
vikram reddy14 reputationPosted Jun 11, 2015, 1:36 AM EDT
Saroj Kumar SahuRank #1,765 · 849 reputationPosted Jun 11, 2015, 1:50 AM EDT
vikram reddy14 reputationPosted Jun 11, 2015, 1:51 AM EDT
Inathi Gqola83 reputationPosted Jun 11, 2015, 1:55 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts