asp.net - Set Visible property with server tag <%= %> in Framework 3.5 -
i have been working in .net framework 4 project using server tags <%=whatever %> set visibility of runat="server" controls, following: <div id="myid" runat="server" visible="<%=myvisiblepropertyoncodebehind %>" > content </div> this works on framework 4, trying use on framework 3.5 project doesn't seems work. framework 4 feature? there coolest (and .aspx side) alternative setting visibility codebehind? i'm using ugly: miid.visible = myvisiblepropertyoncodebehind thanks in advance, tom [edited] solution: thanks comments makes me understand problem , solution! it fault in more 1 thing. in vs2010 project using <%# instead of <%= also, didn’t notice in vs2010 project using pages inherited not “page”, custompage class, making binding automatically, without me noticing it, , makes me think framework 4.0 feature. as told here, if have following markup: <div id="myid