Why can't I bind visible of a control without runat=server?

Posted by Matthew Jones on Stack Overflow See other posts from Stack Overflow or by Matthew Jones
Published on 2010-06-02T19:06:00Z Indexed on 2010/06/02 19:14 UTC
Read the original article Hit count: 253

Filed under:
|

In other words, why can't I do this:

<a id="projectsButton" 
visible=<%= someFunctionWhichEvalsToFalse() ? false : true %>>
</a>

It seems to do nothing. I checked this by switching the false and true.

What can I do about this?

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET