如何修改
控件

解决方案 »

  1.   

        <asp:RadioButtonList ID="RadioButtonList1" runat="server">
            <asp:ListItem Value="0">男</asp:ListItem>
            <asp:ListItem Value="1">女</asp:ListItem>
        </asp:RadioButtonList>        protected void Page_Load(object sender, EventArgs e)
            {
                if (!IsPostBack)
                {
                    string str="女";
                    RadioButtonList1.Text = (str == "男" ? "0" : "1");
                }
            }