日期:2014-05-17 浏览次数:20475 次
RadioButtonList rbl = new RadioButtonList(); rbl.ID = "rbs1"; rbl.Items.Add(new ListItem("A")); rbl.Items.Add(new ListItem("B")); rbl.Items.Add(new ListItem("C")); rbl.Items.Add(new ListItem("D")); this.form1.Controls.Add(rbl);
------解决方案--------------------
rbl.SelectedIndexChanged += new EventHandler("方法名");
------解决方案--------------------
能否偷懒的在一开始把RadioButton隐藏,在需要的时候显示出来?