取得动态添加控件的值,分不够再加
以下是我创建控件的代码:
int j = 100;
if (i < j)
{
Button delete = new Button();
delete.ID = "delete " + i.ToString();
delete.Text = "删除 ";
TextBox arr_dt = new TextBox();
arr_dt.ID = "arr_dt " + i.ToString();
arr_dt.Text = DateTime.Today.ToShortDateString();
arr_dt.Width = 90;
TextBox lea_dt = new TextBox();
lea_dt.ID = "lea_dt " + i.ToString();
lea_dt.Text = DateTime.Today.AddDays(+1).ToShortDateString();
lea_dt.Width = 90;
TextBox rm_num = new TextBox();
rm_num.ID = "rm_num " + i.ToString();
rm_num.Text = "1 ";
rm_num.Width = 30;
TextBox pre_num = new TextBox();
pre_num.ID = "pre_num " + i.ToString();
pre_num.Text = "1 ";//是否取床位数?
pre_num.Width = 30;
DropDownList rm_typ = new DropDownList();
rm_typ.ID = "rm_typ " + i.ToString();
rm_typ.Width = 150;
&