J
Jerad Rose
I searched for a while trying to find the answer to this, but to no avail.
I am trying to find the best way (or any way) to dynamically show and hide
groups of TR's. For example, I have a section of about 6 table rows that
all need to be hidden if a certain condition is met. But I don't want to
hide the whole table. And, I don't want to split up the table because the
columns need to remain intact.
I thought about using runat=server on each of the TR's, and just hiding them
each individually, but that just seems really sloppy, and I thought there
had to be a better way to do it. I really need some sort of HTML-less
container that can serve as a wrapper for the TR's without rendering any
additional HTML.
An asplaceHolder would be perfect since it doesn't render any additional
HTML, but it doesn't allow any other nested server controls at design time
(which seems silly). And an aspanel can wrap around any HTML or server
controls, but it renders HTML (div in IE and table in Netscape -- which
really hoses the HTML). And a <span runat=server> doesn't like nested TR's.
I just need some "wrapper" server control that can contain anything (HTML
and Server controls) without rendering ANY HTML on any browser. Seems like
this would be widely used (and needed) feature, but I haven't had much luck
finding such a thing.
Any suggestions would be appreciated.
Thanks in advance for your help!
Jerad
I am trying to find the best way (or any way) to dynamically show and hide
groups of TR's. For example, I have a section of about 6 table rows that
all need to be hidden if a certain condition is met. But I don't want to
hide the whole table. And, I don't want to split up the table because the
columns need to remain intact.
I thought about using runat=server on each of the TR's, and just hiding them
each individually, but that just seems really sloppy, and I thought there
had to be a better way to do it. I really need some sort of HTML-less
container that can serve as a wrapper for the TR's without rendering any
additional HTML.
An asplaceHolder would be perfect since it doesn't render any additional
HTML, but it doesn't allow any other nested server controls at design time
(which seems silly). And an aspanel can wrap around any HTML or server
controls, but it renders HTML (div in IE and table in Netscape -- which
really hoses the HTML). And a <span runat=server> doesn't like nested TR's.
I just need some "wrapper" server control that can contain anything (HTML
and Server controls) without rendering ANY HTML on any browser. Seems like
this would be widely used (and needed) feature, but I haven't had much luck
finding such a thing.
Any suggestions would be appreciated.
Thanks in advance for your help!
Jerad