asp.net 代码:
发布人:
时间:
C#:
protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
if (Session["Name"].ToString() != ((Label)e.Item.FindControl("Label3")).Text)
{
((LinkButton)e.Item.FindControl("lbtnEdit")).Visible = false;
}
}
}
改了一处:
发布人: