akshay rasalakar

akshay rasalakar

  • NA
  • 128
  • 9.4k

Repeater Control

May 10 2015 3:29 AM
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)