我想在第四次迭代中退出 rpt.ItemDataBound 函数,但是当我完成时:
Protected Sub rptCol_ItemDataBound(sender As Object, e As RepeaterItemEventArgs) Handles rptCol.ItemDataBound
If Not e.Item.ItemType = ListItemType.AlternatingItem AndAlso Not e.Item.ItemType = ListItemType.Item Then Exit Sub
If e.Item.ItemIndex = 4 Then
Exit Sub
End If
..
它没有用,他只是跳过了这个迭代。
有任何想法吗 ?谢谢