简体   繁体   English

如何使用C#将数据动态绑定到asp:repeater中的RadioButtonList?

[英]How to bind data dynamically to RadioButtonList in asp:repeater using C#?

i want to make a MCQ test paper like following: 我想制作如下的MCQ试卷:

  1. question1 问题1

    radiobuttonlist with values ans1,ans2,ans3,ans4 具有值ans1,ans2,ans3,ans4的单选按钮列表

  2. question2 问题2

    radiobuttonlist with values ans5,ans6,ans7,ans8 具有值ans5,ans6,ans7,ans8的单选按钮列表

All the values of answers and questions must be retrieved from database. 答案和问题的所有值都必须从数据库中检索。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将数据绑定到ASP.NET C#中的转发器控件? - How can bind data to repeater control in asp.net c#? 如何使用实体框架在ASP转发器中绑定数据? - How to bind data in asp repeater using entity framework? 如何将数据随机绑定到单选按钮asp.net - how can I bind data randomly into a radiobuttonlist asp.net 如何找到ASP中继器控件并将数据绑定到它 - How to find asp repeater control and bind data to it 如何在C#中的循环中绑定中继器 - How to bind repeater in loop in c# 在使用c#asp.net绑定到Repeater之前,更改图像大小。 - Change the Image size before bind inside Repeater using c# asp.net. 如何将asp.net转发器控件动态绑定到数据源 - How to dynamically bind asp.net repeater control to datasource ADO.net如何使用C#和连接的模型在页面加载时将特定数据库表单元格中的数据绑定到转发器控件上? - ADO.net how to bind data from specific database table cell to a repeater control on page load using C# & the connected model? 如何根据另一个转发器中的radiobuttonlist过滤转发器项目的数据 - how to filter data of repeater items based on radiobuttonlist in another repeater 我如何将我的OnItemDataBound C#代码放在我的代码后面,并将其绑定到asp:repeater - How can I put my OnItemDataBound c# code in my code behind and bind it to the asp:repeater
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM