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
>
In addition, you might want to look into updating your browsercaps if you
haven't done so already. There ought to be several posts on how to do that
floating around.
"Dunc" wrote:
> 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, o
r
> a way to silence the Panel control?
> Thanks in advance,
> Dunc
>
>
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment