Hi,
then you'd add client-side CC styles (CSS: display:none or visibility:
hidden) for example via Panel's Style property. If you use display:none the
space for the object is not kep on the page when it is changed to be hidden.
With visibility: hidden the space is kept even if the object is not visible,
that's their difference.
--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
http://blogs.aspadvice.com/joteke
"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:Oi**************@TK2MSFTNGP12.phx.gbl...
Hi,
Is there any way to use the asp:Panel Web control so that it is always
created regardless of its Visible property? E.g. if I write the following:
<asp:Panel ID=pnlEvent Runat=server Visible=False>
...controls
</asp:Panel>
the panel is not actually created. I'd like it to be created but be
invisible, ready for me to make the <div> it creates visible client-side
with JavaScript as and when required, i.e. without a return to and from
the server...
Any assistance gratefully received.
Mark