|
发表于 2020-4-28 20:45:01
|
显示全部楼层
我试了一下可以cancel,不过觉得意义不大啊
<form id="Form1" method="post" runat="server">
<asp:RadioButtonList id="radioBtnList" style="Z-INDEX: 101; LEFT: 232px; POSITION: absolute; TOP: 136px"
runat="server">
<asp:ListItem Value="111">111</asp:ListItem>
<asp:ListItem Value="2222">2222</asp:ListItem>
<asp:ListItem Value="3333">3333</asp:ListItem>
</asp:RadioButtonList>
<asp:Button id="btnCancel" style="Z-INDEX: 102; LEFT: 408px; POSITION: absolute; TOP: 168px"
runat="server" Text="取消"></asp:Button>
</form>
private void btnCancel_Click(object sender, System.EventArgs e)
{
bool bFlag = false;
this.radioBtnList.SelectedItem.Selected = bFlag;
} |
|