62,074
社区成员
发帖
与我相关
我的任务
分享
<asp:Button runat="server" ID="btnTest" Text="测试" OnClick="btnTest_Click" />
<asp:RadioButtonList runat="server" ID="rbnShow">
<asp:ListItem Selected="True" Text="公交" Value="1"></asp:ListItem>
<asp:ListItem Text="地铁" Value="2"></asp:ListItem>
<asp:ListItem Text="私家车" Value="3"></asp:ListItem>
</asp:RadioButtonList>
protected void btnTest_Click(object sender, EventArgs e)
{
rbnShow.SelectedValue = "2";
}