1
Answer

Repeater Control

foreach (RepeaterItem item in rpt1.Items)
{
Label lbl_status = (Label)item.FindControl("lbl_status");
LinkButton lnk_pay = (LinkButton)item.FindControl("lnk_pay");
if (lbl_status.Text == "Pending")
{
lnk_pay.Visible = false;
}
else
{
lnk_pay.Visible = true;
}
}
I want make link button visible=false when label text="Pending"  and im not getting where im doing wrong
Answers (1)