div server control - set visibility
Posted on 2006-07-13
I have created a master page for my site and have a div server contorl:
<div id="leftcolumn" runat="server">'
I want to be able to set the visibility of this control for my different pages.
Whenever the a page renders, the source shows:
So, first off, the styles for the control don't apply because the id is different than what I specified when the page renders. Secondly, I can't set the visibility for the control in the code-behind.
What is the appropriate way to handle this?