本人动态生成了一个RadioButtonList控件,代码如下:
page_load中代码:
RadioButtonList meradio=new RadioButtonList();
meradio.id="aaa";
PlaceHolder1.controls.add(meradio);
for (int i=0;i<=4;i++)
 {
   ListItem choice=new ListItem("aaa");
   choice.value=i.tostring();
   meradio.item.add(choice); }
Button1_Click中代码:
RadioButtonList myradio=new RadioButtonList();
myradio=(RadioButtonList)(PlaceHolder1.findcontrol("aaa"));
Response.write(myradio.Selecteditem.value);运行后,页面能出来,点击按钮后提示这一行错误Response.write(myradio.Selecteditem.value);,“为将对象引用设置到对象的实例”请高手给出怎样才能引用动态生成的RadioButtonList控件