在线测试项目 [英] Online Test project
本文介绍了在线测试项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我目前正在从事在线考试网络项目..我有一个这样的表格..
sno问题answer1 answer2 answer3 answer4正确答案
01 sql看台?结构简单,简短,无结构
我只想将这4个答案绑定到存在于gridview内的单选按钮列表中.无法执行此操作,所以请帮助我....
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 ....
推荐答案
好吧
步骤:
1.从数据库中获得针对给定问题的答案(单独或与问题一起拍摄)
2.您应该有一个包含4个答案的数据集.
3.使用此按钮以您喜欢的方式绑定单选按钮-如果需要,一个接一个地选择
对于数据,可以说,您运行一个查询并从数据库中获取与此问题相关的数据,例如:
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:
SELECT question, answer1, answer2, answer3, answer4
FROM myQTable
WHERE sno = 1
试试吧!
Try!
这篇关于在线测试项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文