在Repeater1_ItemDataBound中控制Button是否显示. e.Item.FindControl("affirmbtn").Visible = true; 这样写不行?
------解决方案--------------------------------------------------------
- C# code
if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item) { Button btn = e.Item.FindControl("affirmbtn") as Button ;btn.Visible = false; }