repeater 控件的 Findcontrol
If e.Item.ItemType = ListItemType.Item Then
Dim lbtn As LinkButton = CType(e.Item.FindControl("lbtn_gb_delete"), LinkButton)
lbtn.Visible = True
lbtn.Dispose()
End If
donetsDim lbtn As LinkButton = CType(e.Item.FindControl("lbtn_gb_delete"), LinkButton)
lbtn.Visible = True
lbtn.Dispose()
End If
这里的 itemType的判断不能少 不然就是报错