2 u011100157 u011100157 于 2013.06.19 23:11 提问

如何在点击button按钮发生页面回发时RadioButtonList还有选中项

protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
里边有加载试题的代码
}
}
protected void Button1_Click(object sender, EventArgs e)//提交按钮单击事件
{
for (int i = 1; i <= 3; i++)
{

        RadioButtonList list = (RadioButtonList)Panel1.FindControl("cbk" + i.ToString()) as RadioButtonList;

//能不能在点击button时让RadioButtonList不为空
}
}

Csdn user default icon
上传中...
上传图片
插入图片