<asp:Table id="Table2" runat="server" CellPadding="1" BorderWidth="1px" Width="240px">
<asp:TableRow>
<asp:TableCell>
<asp:RadioButtonList id="RadioButtonList1" runat="server" AutoPostBack="true">
<asp:ListItem Value="a">a</asp:ListItem>
<asp:ListItem Value="b">b</asp:ListItem>
</asp:RadioButtonList>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
对上面的RadioButtonList1控件加一个SelectedIndexChanged事件?
平台:VS2003
双击是不行的。
<asp:TableRow>
<asp:TableCell>
<asp:RadioButtonList id="RadioButtonList1" runat="server" AutoPostBack="true">
<asp:ListItem Value="a">a</asp:ListItem>
<asp:ListItem Value="b">b</asp:ListItem>
</asp:RadioButtonList>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
对上面的RadioButtonList1控件加一个SelectedIndexChanged事件?
平台:VS2003
双击是不行的。
2、在后置代码定义 protected System.Web.UI.WebControls.RadioButtonList Radiobuttonlist1;
在InitializeComponent()注册this.Radiobuttonlist1.SelectedIndexChanged += new System.EventHandler(this.Radiobuttonlist1_SelectedIndexChanged);private void Radiobuttonlist1_SelectedIndexChanged(object sender, System.EventArgs e)
{
}