我有一个Webcontrol,我是完全动态创建的,它包含radiobuttonList。如何在我注册此控件的页面上访问此radibuttonlist值?
public class MyControl:WebControl
pnContainer = new Panel();
rbl = new RadioButtonList();
liResume = new ListItem("Resume", "Resume");
liReopen = new ListItem("ReOpen", "ReOpen");
rbl.Items.Add(liResume);
rbl.Items.Add(liReopen);
pnContainer.Controls.Add(lblReOpenTitle);
pnContainer.Controls.Add(rbl);
this.Controls.Add(pnContainer);
答案 0 :(得分:1)
始终存在两种方式: