<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Ex2-4.aspx.cs" Inherits="Ex2_4" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Ex2-4</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:RadioButtonList ID="rblsex" runat="server" RepeatDirection="Horizontal" onselectedindexchanged ="rblsex_SelectedIndexChanged" AutoPostBack="True">
            <asp:ListItem Value="1">男</asp:ListItem>
            <asp:ListItem Value="0">女</asp:ListItem>
        </asp:RadioButtonList>
        你选择的是：<asp:Label ID="lbl1" runat="server" Text="Label"></asp:Label>
        ；对应的值为：<asp:Label ID="lbl2" runat="server" Text="Label"></asp:Label>
    </div>
    </form>
</body>
</html>
