我做网站,想在客户端实现如下功能
单选按钮1    下拉列表框1
单选按钮2     下拉列表框2
单选按钮3    下拉列表框3 下拉列表框4
DATAGRIDE显示数据
要求选中某个单选按钮,下拉列表框才能够使用,比如选中单选按钮3,
列表框3和4才能够使用,然后让用户选择下拉列表框中的选项,根据用户的选择
在DATAGRIDE中将数据库的搜索结果显示,这该如何实现呢,请各位高手指点啊,给我点源代码最好了,我C#极烂啊。救命啊!!!!!!!!!

解决方案 »

  1.   

    <asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged">
                        <asp:ListItem Value=1>1</asp:ListItem>
                        <asp:ListItem Value=2>2</asp:ListItem>
                        <asp:ListItem Value=3>3</asp:ListItem>
                        </asp:RadioButtonList>
    protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (RadioButtonList1.SelectedValue == "3")
            { 
                下拉列表框3.Enabled = true;
                下拉列表框4.Enabled = true;
            }
        }