日期:2014-05-17  浏览次数:20823 次

.net中怎麼用dropdownlist控制div的顯示
   
         前臺:     <tr>
                    <td>
                    <div id="Cf" runat="server" class="hide">
                    重複發生在每<asp:DropDownList ID="ddlSc_Cfrc" runat="server" OnSelectedIndexChanged="ddlSc_Cfrc_SelectedIndexChanged">
                    <asp:ListItem>天</asp:ListItem>
                    <asp:ListItem>周</asp:ListItem>
                    <asp:ListItem>月</asp:ListItem>
                        </asp:DropDownList>
                    </div>
                    </td>
                  </tr>

                  <tr >
                    <td>
                    <div id="Cfz" runat="server" style="display:none">
                    <table>
                    <tr>
                    <td>
                        <asp:CheckBoxList ID="Cbl" runat="server" RepeatColumns="7">
                        <asp:ListItem>周日</asp:ListItem>
                        <asp:ListItem>周一</asp:ListItem>
                        <asp:ListItem>周二</asp:ListItem>
                        <asp:ListItem>周三</asp:ListItem>
                        <asp:ListItem>周四</asp:ListItem>
        &n