469,903 Members | 1,481 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,903 developers. It's quick & easy.

Design View when using an ASP:Panel to show/hide groups of <tr>'s

I have an HTML table in which I am using ASP:Panel controls to group
together <tr>'s so that I can more easily show/hide them (by setting the
ASP:Panel's Visible property). This works fine, but Visual Studio .NET
2005's Design View always hides the <tr>'s regardless of whether the
ASP:Panel's Visible property is set to True, False, or not set at all. Is
there some way I can stop Visual Studio .NET 2005's Design View from hiding
my <tr>'s that are inside ASP:Panel controls? Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/
Oct 12 '06 #1
2 2313
>I have an HTML table in which I am using ASP:Panel controls to group
>together <tr>'s so that I can more easily show/hide them (by setting the
ASP:Panel's Visible property). This works fine, but Visual Studio .NET
2005's Design View always hides the <tr>'s regardless of whether the
ASP:Panel's Visible property is set to True, False, or not set at all. Is
there some way I can stop Visual Studio .NET 2005's Design View from hiding
my <tr>'s that are inside ASP:Panel controls? Thanks.
asp:Panel contol usually renders as <div>...</divtag. It is not suitable
for hiding <tr>s. Use asp:PlaceHolder, which does not have any wrapping
tags.

Robert Haken [MVP ASP/ASP.NET]
HAVIT, s.r.o., www.havit.cz
http://knowledge-base.havit.cz
Oct 12 '06 #2
Would I use the asp:PlaceHolder control the same way? I have never used the
asp:PlaceHolder control before. Would my basic tag layout be the following:

<asp:PlaceHolder>
<tr>...</tr>
<tr>...</tr>
<tr>...</tr>
</asp:PlaceHolder>
<asp:PlaceHolder>
<tr>...</tr>
<tr>...</tr>
<tr>...</tr>
</asp:PlaceHolder>

Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"Robert Haken [MVP]" <ha***@havit.czwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
I have an HTML table in which I am using ASP:Panel controls to group
together <tr>'s so that I can more easily show/hide them (by setting the
ASP:Panel's Visible property). This works fine, but Visual Studio .NET
2005's Design View always hides the <tr>'s regardless of whether the
ASP:Panel's Visible property is set to True, False, or not set at all. Is
there some way I can stop Visual Studio .NET 2005's Design View from
hiding my <tr>'s that are inside ASP:Panel controls? Thanks.

asp:Panel contol usually renders as <div>...</divtag. It is not suitable
for hiding <tr>s. Use asp:PlaceHolder, which does not have any wrapping
tags.

Robert Haken [MVP ASP/ASP.NET]
HAVIT, s.r.o., www.havit.cz
http://knowledge-base.havit.cz

Oct 13 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by El Diablo | last post: by
5 posts views Thread by Thierry Schembri | last post: by
1 post views Thread by prefersgolfing | last post: by
3 posts views Thread by jack | last post: by
6 posts views Thread by Summercool | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.