在Ddlpickdbname 的SelectedIndexChanged 事件中写

解决方案 »

  1.   

    以上代码放到Ddlpickdbname的selectIndexChanged事件里
      

  2.   

    在page_load中写,当然每次都是执行if 
                                this.tablename = "Bookinfo";//图书表名                 this.Plpobook.Visible = true; 
                    this.Plpoperiod.Visible = false; 
                    this.Plpopaper.Visible = false; 
                    this.Plpospedoc.Visible = false; 
                    this.Plpovideo.Visible = false;