I'm using databinding to set the visible property on a control as such:
Control on Page:
<asp:LinkButton ID="ApproveTimeLink" runat="server" Visible="<%# CanApprove() %>"> Approve Time</asp:LinkButton>
Code on CodeBehind:
Protected bool CanApprove() { return false; }
As you can see the control should not show, yet still does. I'm not getting any errors, and I'm baffled as to why this does not work.
Thanks for the help.