Currently I am trying to modify a css style attribute for a div based on the information I get from a database table in the code behind of my aspx page. In simplified form the following is essentially what I am trying to do but I get errors.
Here is my code:
ASPX:
<div id="testSpace" runat="server">
Test
</div>
CODE BEHIND:
testSpace.Style = "display:none;"
testSpace.Style("display") = "none";
Any help would be appreciated. Thanks!