我有一个页面,我创建了许多动态控件,控件是深层嵌套的。我不知道如何维持/坚持他们的价值/状态。在下拉值更改事件时创建控件:
for(int i = 0; i < n; i++)
{
// Here I create radio button and add them
RadioButton rd = new RadioButton();
rd.id = "rd" + i;
for(int j = 0; j < 5; j++)
{
// Here I create textbox and add them to page
TextBox tbx = new TextBox();
tbx.id = "tbx" + j + i;
}
}