<asp:RadioButtonList ID="RadioButtonList_ActionType" runat="server" RepeatDirection="Horizontal">
<asp:ListItem Selected="True" Value="1">普通消息</asp:ListItem>
<asp:ListItem Value="2">中奖消息</asp:ListItem>
</asp:RadioButtonList>
循环这些项,设置选中项:
foreach (ListItem item in this.RadioButtonList_ActionType.Items)
{
if (item.Text.Equals("")
{
item.Selected = true;
break;
}
}