如有控件a.ascx,把其赋给变量 x="a.ascx",如何根据条件调用x中的控件?换言之,如何把如下代码通用化:Controls.Supplier.SupplierList ctrl= (Controls.Supplier.SupplierList)LoadControl("Controls/Supplier/a.ascx" );
con.Class = strPanelType;
this.PlaceHolder1.Controls.Add(ctrl);把Controls.Supplier.SupplierList 和a.ascx抽象出来?
con.Class = strPanelType;
this.PlaceHolder1.Controls.Add(ctrl);把Controls.Supplier.SupplierList 和a.ascx抽象出来?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货