会用到转换数字为字母的知识。
http://www3.ccw.com.cn/club/essence/200209/15422.htm
for (i=1;i<=3;i++)
{
RadioButtonList RBL=new RadioButtonList();
Label lbl=new Label();
PlaceHolder1.Controls.Add(lbl);
lbl.Text="问题"+i.ToString();
PlaceHolder1.Controls.Add(RBL);
RBL.ID="rbl"+i.ToString();
RBL.Width=200;
if (!IsPostBack)
{
for (j=1;j<5;j++)
{
RBL.Items.Add(new ListItem(((char) (64+j)).ToString(),i.ToString()+((char) (64+j)).ToString()));
}
}
}
http://www3.ccw.com.cn/club/essence/200209/15422.htm
for (i=1;i<=3;i++)
{
RadioButtonList RBL=new RadioButtonList();
Label lbl=new Label();
PlaceHolder1.Controls.Add(lbl);
lbl.Text="问题"+i.ToString();
PlaceHolder1.Controls.Add(RBL);
RBL.ID="rbl"+i.ToString();
RBL.Width=200;
if (!IsPostBack)
{
for (j=1;j<5;j++)
{
RBL.Items.Add(new ListItem(((char) (64+j)).ToString(),i.ToString()+((char) (64+j)).ToString()));
}
}
}