摘要: 在做音乐网站的时候要判断repeater中checkbox的checked值来选择要播放的音乐。千辛万苦查资料后终于憋出来了。希望对别人会有帮助。 for (int i = 0; i < this.Play_ListRepeater.Items.Count; i++) //遍历 { CheckBox check = (CheckBox)this.Play_ListRepeater.Items[i].FindControl("Music_Box"); //Label Music_lable = (Label)this.Play_ListRepeater.Items[i] 阅读全文