代码
 protected void drpZuoyedian_SelectedIndexChanged(object sender, EventArgs e)
 {
        DropDownList drpZuoyedian 
= (DropDownList)sender;
        GridViewRow gvData 
= (GridViewRow)drpZuoyedian.NamingContainer;

        
string zuoyedian = drpZuoyedian.SelectedValue;
        DropDownList drpXianbie 
= (DropDownList)gvData.FindControl("drpXianbie");
        
string sqlxianbie = "select * from pubXianbie where parent_id='" + zuoyedian + "'";
        Util.BindDropDownList(drpXianbie, sqlxianbie, 
"name""id");
 }

 

相关文章:

  • 2022-12-23
  • 2022-02-16
  • 2021-12-11
  • 2021-06-05
猜你喜欢
  • 2022-12-23
  • 2021-08-16
  • 2022-02-09
相关资源
相似解决方案