大家有用DropDownList有数据访问的二联动  、 三联动 、四联动的例子吗???  越详细越好!!越详细分越多哦!!!

解决方案 »

  1.   

    http://www.zxbc.cn/html/20070419/2210.html(转)
      

  2.   

    将前3个dropdownlist的autopostback属性设为true; 
    private   void   InitializeComponent() 
    {         
                            this.DropDownList1.SelectedIndexChanged   +=   new   System.EventHandler(this.DropDownList1_SelectedIndexChanged); 
                            this.Load   +=   new   System.EventHandler(this.Page_Load);                 } private   void   DindDDLST(DropDownList   ddlst,string   parentid) 
                    { 
                            string   sql   =   "select   *   from   table1   where   parentid   =   ' "   +   parentid   +   " ' "; 
                            //读取数据绑定ddlst 
                    } 
                    private   void   DropDownList1_SelectedIndexChanged(object   sender,   System.EventArgs   e) 
                    { 
                            this.DropDownList2.Items.Clear(); 
                            this.DropDownList3.Items.Clear(); 
                            this.DropDownList4.Items.Clear(); 
                            DindDDLST(this.DropDownList2,this.DropDownList1.SelectedValue); 
                    } 
    如此类推; 2)修改前用ViewState记录所有选中的情况,保存后重新绑定; 
          或者不要重新绑定,而是保存成功后直接修改dropdownlist的当前item 
    (源于高手写的)
      

  3.   

    省市区县(含全国完整数据库)Ajax无刷新三级联动
      

  4.   

    http://www.cnblogs.com/insus/archive/2011/07/04/2097059.html