成都创新互联网站制作重庆分公司

读取datalist中的数据

//前台: 
 
                                                     
                                                       
                                                    ’> 
                                                   
 
                                               
 
//后台: 
for (int i = 0; i <= daliXi.Items.Count-1; i++) 
                    {. 
                        CheckBox cb=(CheckBox)daliXi.Items[i].FindControl("cbXi");(cb指向”cbXi”的内存地址,修改cb的属性,即修改cbXi) 
                         if (cb.Checked) 
                         { 
                             Label lb = (Label)daliXi.Items[i].FindControl("lbXi"); 
                             Response.Write("