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
7 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Praveen KumarPosted Jun 11, 2015, 5:40 AM
Inathi GqolaPosted Jun 11, 2015, 5:55 AM
vikram reddyPosted Jun 11, 2015, 5:51 AM
Saroj Kumar SahuPosted Jun 11, 2015, 5:50 AM
Praveen KumarPosted Jun 11, 2015, 5:45 AM
vikram reddyPosted Jun 11, 2015, 5:36 AM
Inathi GqolaPosted Jun 11, 2015, 5:17 AM