Click here to Skip to main content
15,888,195 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
protected void rpt1_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
  if (e.Item.ItemType == ListItemType.Item)
  {
    Label lbl_status = (Label)e.Item.FindControl("lbl_status");
    LinkButton lnk_pay = (LinkButton)e.Item.FindControl("lnk_pay");
    
    if (lbl_status.Text == "Pending")
    {
      lnk_pay.Visible = false;
    }
    else
    {
      lnk_pay.Visible = true;
    }
  }
}
Posted
Updated 9-May-15 23:38pm
v2
Comments
Kornfeld Eliyahu Peter 10-May-15 5:39am    
How can we know?
There are errors? Unexpected result? What's wrong?
Did you debug? You can easily find the problem.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900