DataList 内有一个可选的 RadioButton

发布于 2024-09-28 11:04:44 字数 150 浏览 0 评论 0原文

我正在尝试在我的网络应用程序中实现多项选择题。我在数据列表中有数据列表。第一个数据列表包含问题,第二个数据列表包含选择,一次只能选择一个选项。我正在使用单选按钮。尽管我已经设置了 RadioButton.GroupName 属性,但我无法使它们一次可选择一个。

请帮忙。

I am trying to implement multiple choice questions within my web application. I have datalist within a datalist. First datalist contains questions, second datalist contains choice, only one choice should be selectable at a time. I am using radio button. Even though I have set RadioButton.GroupName property, I can't make them selectable one at a time.

Please help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

蒲公英的约定 2024-10-05 11:04:44

使用RadioButtonList,一个RadioButtonList中只能选择一个RadioButton。使用 RadioButtonList 而不是第二个 DataList。

Use a RadioButtonList, only one RadioButton of a RadioButtonList can be selected. Use the RadioButtonList instead of the second DataList.

冷…雨湿花 2024-10-05 11:04:44

使用复选框代替单选按钮

Use CheckBox instead of RadioButton

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文