ItemDataBound中循环的问题
的有关信息介绍如下:if(e.Item.ItemType != ListItemType.Header && e.Item.ItemType != ListItemType.Footer ){this.Label6.Text = "0"; this.Label32.Text = "0"; for (int i = 0; i < this.DataList6.Items.Count; i++) { Label Quantity = (Label)this.DataList6.Items[i].FindControl("Label24"); Label Price = (Label)this.DataList6.Items[i].FindControl("Label26"); this.Label6.Text = Convert.ToString(Convert.ToDouble(this.Label6.Text) + Convert.ToDouble(Quantity.Text)); this.Label32.Text = Convert.ToString(Convert.ToDouble(this.Label32.Text) + Convert.ToDouble(Price.Text)); }}这样写,不行的话,你把代码贴详细点,或者发我邮箱yuan870207@163.com