问题描述
- 如何在点击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不为空
}
}
时间: 2025-01-24 23:43:31