如何使用C#将数据动态绑定到asp:repeater中的RadioButtonList? [英] How to bind data dynamically to RadioButtonList in asp:repeater using C#?
本文介绍了如何使用C#将数据动态绑定到asp:repeater中的RadioButtonList?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想制作如下的MCQ试卷:
i want to make a MCQ test paper like following:
-
question1
question1
具有值ans1,ans2,ans3,ans4的单选按钮列表
radiobuttonlist with values ans1,ans2,ans3,ans4
question2
question2
具有值ans5,ans6,ans7,ans8的单选按钮列表
radiobuttonlist with values ans5,ans6,ans7,ans8
所有答案和问题的值都必须从数据库中检索.
All the values of answers and questions must be retrieved from database.
推荐答案
Here's one straightforward example: http://www.4guysfromrolla.com/webtech/072701-1.shtml
这里有更多链接: 查看全文