像文本框string ID = this.txtID.Text.Trim();这样
<asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal" Width="400px" >
<asp:ListItem Value="1">第一</asp:ListItem>
<asp:ListItem Value="2">第二</asp:ListItem>
</asp:RadioButtonList>
asp.net后台怎么读取到RadioButtonList单选框的值
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
6条回答 默认 最新
Aoruis 2016-06-03 08:20关注刚发的有问题,看这个
RepeatDirection="Horizontal"
RepeatLayout="Flow">
/asp:RadioButtonList后端获取直接
radioID.SelectedValue本回答被题主选为最佳回答 , 对您是否有帮助呢?评论 打赏 举报解决 2无用