CheckBoxlist选择其它项,出现文本框
1 for (int i = 0; i < chlproductstander.Items.Count; i++)
2 {
3 if (chlproductstander.Items[i].Selected)
4 {
5 if (chlproductstander.Items[i].Text.IndexOf("其它") != -1)
6 {
7 txtproductstander.Visible = true;
8 lbproductstander.Visible = true;
9 }
10 }
11 else
12 {
13 txtproductstander.Visible = false;
14 lbproductstander.Visible = false;
15 }
16 }
2 {
3 if (chlproductstander.Items[i].Selected)
4 {
5 if (chlproductstander.Items[i].Text.IndexOf("其它") != -1)
6 {
7 txtproductstander.Visible = true;
8 lbproductstander.Visible = true;
9 }
10 }
11 else
12 {
13 txtproductstander.Visible = false;
14 lbproductstander.Visible = false;
15 }
16 }