http://heyant.com/html/Download51.html
这个就是源码,而且还是无刷新的

解决方案 »

  1.   

    ajax 无刷新function GetFundCompany() {
        //二级联动
        var ddlClass = $("ddlCompany");
        if (ddlClass.value == "请选择基金公司..") {
            document.all("ddlFund").length = 0;
            document.all("ddlFund").options.add(new Option("请选择基金..", "请选择基金"));
            return;
        }    var response = FundWinChart.GetFundListInfo(ddlClass.value).value;    if (response != null) {
            document.all("ddlFund").length = 0;
            var arr = response.split(',');
            for (var i = 0; i < arr.length; i++) {
                var arr1 = arr[i].split('-');
                var op1 = "", op2 = "";
                for (var n = 0; n < arr1.length; n++) {
                    if (op1 == "")
                        op1 = arr1[n];
                    else
                        op2 = arr1[n];
                }
                document.all("ddlFund").options.add(new Option(op2, op1));
            }
        }
    }
      

  2.   

    数据表中要有父子关系,每当选择一级城市,就触发一个事件来查询并显示下一级城市。
    假如要无刷新的效果,可以当页面导入的时候,把所有的城市名称、城市ID以及其父ID都读取出来,连成一个字符串,然后再解析这个字符串,符合的显示出来!
      

  3.   

    TreeView如何和数据库的操作
      

  4.   

    <div>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                   <asp:DropDownList ID="ddlLB" runat="server" Width="15%" AutoPostBack="True" OnSelectedIndexChanged="ddlLB_SelectedIndexChanged">
                   </asp:DropDownList>
                     <asp:DropDownList ID="ddlChild" runat="server" Width="20%">
                   </asp:DropDownList>
                     </ContentTemplate>
            </asp:UpdatePanel>
            </div> 
    http://topic.csdn.net/u/20090913/08/2cf68e1e-46e7-495e-8a34-e6863e802077.html