以ä¸æ¯æçæµè¯ï¼æ²¡é®é¢åï¼æå»ºè®®ä½ éæ°å»ºç«ä¸ä¸ªæ°çASPX页é¢æµè¯ä¸ï¼ççæ没æé®é¢ï¼å¦æè¿è¡æ£å¸¸é£è¯´æä½ é£ä¸ªé¡µé¢ç设置æé®é¢ï¼ä»ç»æ£æ¥ä¸ä¸ãç¹å«æ¯åå°äºä»¶ç»å®çæ¹æ³å称ååå°çæ¹æ³å称æ¯å¦ä¸æ ·ã
åå°ï¼
<asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack="True"
ForeColor="#FF3300"
onselectedindexchanged="RadioButtonList1_SelectedIndexChanged"
RepeatDirection="Horizontal">
<asp:ListItem Selected="True" Value="man">man</asp:ListItem>
<asp:ListItem Value="woman">woman</asp:ListItem>
</asp:RadioButtonList>
åå°ï¼
protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
{
string str = RadioButtonList1.SelectedValue;
}
温馨提示:答案为网友推荐,仅供参考