Monday, March 26, 2012

panel / placeholder problem

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,

Dunctry using a div tag with visibility and runat=server

<div id="Pagefooter" Visible="false" runat="server" >
<div class="footer" ></div>
</div
"Dunc" <dunc@.ntpcl.f9.co.uk> wrote in message
news:uaNvvVQkEHA.556@.tk2msftngp13.phx.gbl...
> 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

0 comments:

Post a Comment