I have a div element on my page that I wish to show/hide based on a session value in my code-behind. How can I do this?
Give the div "runat="server" and an id and you can reference it in your code behind.
"runat="server"
id
code behind
<div runat="server" id="theDiv">
In code behind:
{ theDiv.Visible = false; }
1.4m articles
1.4m replys
5 comments
57.0k users