panel / placeholder problem

  • Thread starter Thread starter TJS
  • Start date Start date
T

TJS

try using a div tag with visibility and runat=server

<div id="Pagefooter" Visible="false" runat="server" >
<div class="footer" ></div>
</div>
 
I'm creating an XHTML page in aspx, and I've been using a Panel control to
show and hide areas. I've just found, however, that depending on the
browser you're using, sometimes it puts a DIV tag or a TABLE tag into the
code, which I really don't want.

To work around it, I've been using the Placeholder instead of the Panel -
works perfectly, but it makes any ASPX tags within the placeholder come up
as invalid.

Does anyone have a better solution than this? Is there a best practice, or
a way to silence the Panel control?

Thanks in advance,

Dunc
 
Back
Top