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             }
posted @ 2011-12-05 16:39  做最好の自己  阅读(553)  评论(0编辑  收藏  举报