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:
Protected myBoolean as boolean=false <html> <Component:myComponent Visible="<%# myBoolean%>"/> </html>




Reply With Quote