首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

DropDownList的级联解决办法

2012-08-31 
DropDownList的级联先绑定一个DropDownList 然后在第一个被选中时接着出来第二个的值[解决办法]HTML code

DropDownList的级联
先绑定一个DropDownList 然后在第一个被选中时接着出来第二个的值

[解决办法]

HTML code
    <form id="form1" runat="server">    <div>        <asp:ScriptManager ID="ScriptManager1" runat="server">        </asp:ScriptManager>        <asp:UpdatePanel ID="UpdatePanel1" runat="server">            <ContentTemplate>                <div>                    省份:<asp:DropDownList ID="ddlProvinceList" runat="server" AutoPostBack="true"                         onselectedindexchanged="ddlProvinceList_SelectedIndexChanged">                    </asp:DropDownList>                </div>                <div>                    城市:<asp:DropDownList ID="ddlCityList" runat="server">                    </asp:DropDownList>                </div>            </ContentTemplate>        </asp:UpdatePanel>    </div>    </form> 

热点排行