473,382 Members | 1,512 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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 1467
>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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: F. Da Costa | last post by:
Hi, I' looking to retrieve ProdName1 form the <tr> below. <tr id="1-1-1" class="even"> <td> <div class="tier4"> <a href="#" class="leaf"></a> ProdName1 </div>
18
by: Shannon Jacobs | last post by:
Trying to solve this with a regex approach rather than the programmatic approach of counting up and down the levels. I have a fairly complicated HTML page that I want to simplify. I've been able to...
4
by: El Diablo | last post by:
Hi there, I'm trying dynamically generate extra rows in a table. So far this achieves this task within the tHead segment: theTable.tHead.appendChild(document.createElement('TR')) ....but...
5
by: Thierry Schembri | last post by:
Hi ! I'm facing problems with a background image in a table (with IE & Opera), it works with FF : the <tr> has a background image, but the background repeats in each <td> ex : tr...
1
by: prefersgolfing | last post by:
I'm not using Master Pages, yet I'd like to display the contents of an HTML page within a <table><tr><td> on a .aspx. I have a lengthy guide already paginated in html. I'd like to embed the...
2
by: petereffect | last post by:
i have foll. code <tr> <a href="a1.shtml"> <td width='100%'> &nbsp;"+Testing+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td> </a>
2
by: Nathan Sokalski | last post by:
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...
3
by: jack | last post by:
Hi all im Creating a report in HTML with the help of dotnet.. im creating a which shows a data of 12 months .. the forst row of the column contains month names.. and the following data.. The...
6
by: Summercool | last post by:
I just found that for a table, the margin for <trand <tdare not honored, but the padding is... is this a widely known fact? why make this an exception for margin, i wonder. margin not...
4
by: monion | last post by:
All, One more question (never ending right???) If I have a list of names to pull from (Mitch, Bob, Randy, Simon, Paul & Will) in a MYSQL database. How can I query them into a web page using...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.