隐藏Repeater中的Button
在Repeater1_ItemDataBound中控制Button是否显示. e.Item.FindControl("affirmbtn").Visible = true; 这样写不行?
[解决办法]
if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item) { Button btn = e.Item.FindControl("affirmbtn") as Button ;btn.Visible = false; }