I have a boolean in my code behind that I want to control the visibility of a control but I get a databinding error. Not sure if my syntax is correct.
I've simplified what I am doing below. I have no problem accessing public and protected variables in html via <%=whatever%> but when I try to apply to a control attribute it isn't working.


VB Code:
  1. Protected myBoolean as boolean=false
  2.  
  3. <html>
  4. <Component:myComponent Visible="<%# myBoolean%>"/>
  5. </html>