将数据从SQL获取到单选按钮并对其进行分组 [英] Getting data from SQL to radio button and group them

查看:77
本文介绍了将数据从SQL获取到单选按钮并对其进行分组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hiiii



i有数据库包含问题和答案,每个问题都来自数据库,基于前一个问题的答案....数据库结构完成。< br $>


数据库图这里



现在我面临向用户显示数据的问题。

i需要获得与单选按钮中的特定问题相关的一些答案,当用户检查其中一个时,下一个问题将出现

如何从单选按钮中获取DB的答案以及我如何根据当前问题的答案显示下一个问题。

什么是最好的控制来帮助我(Repear,Gridview,datalist,......)任何想法。

请尽快帮我帮忙

解决方案

是的你可以使用datalist并使用数据表绑定下一行

当我点击下一步时


hiiii

i have database contain Questions and Answers , each question is come from database based on the answer of previous question .... database structure is done .

database diagram here

now i face a problem in displaying the data to the user .
i need to get some answers that related to specific question in radio buttons and when user check one of them , the next question will appear
how i get the answers from DB in radio buttons and how i show the next question based on the answer of the current question .
what is the best control to help me (Repear, Gridview ,datalist ,...) any idea.
please i need help ASAP

解决方案

Yes you can use datalist and bind next row using datatable
at when i click next


这篇关于将数据从SQL获取到单选按钮并对其进行分组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆