Hello,
I would suggest a simple div tag... you could assign it a
id and runat server. It should work.
pepsi
[color=blue]
>-----Original Message-----
>Hi gang. I tried posting this under a different topic[/color]
(Dynamically[color=blue]
>Show/Hide Groups of TR's), but I thought maybe rewording[/color]
the topic and post[color=blue]
>may help people to undersand my intentions.
>
>I'm looking for a simple container control that can wrap[/color]
around a set of[color=blue]
>HTML/server controls just for server-side purposes[/color]
(show/hide) -- without[color=blue]
>rendering any HTML. This seems like it would be a common[/color]
practice, but I've[color=blue]
>not been able to find such a server control.
>
>An asp:PlaceHolder would be perfect since it doesn't[/color]
render any additional[color=blue]
>HTML, but it doesn't allow any other nested <asp:> server[/color]
controls at design[color=blue]
>time (which seems silly). And an asp:Panel can wrap[/color]
around any HTML or[color=blue]
>server controls, but it renders HTML (div in IE and table[/color]
in Netscape --[color=blue]
>which really hoses the HTML). And a <span runat=server>[/color]
doesn't like nested[color=blue]
>TRs (see example below), plus that's still rendering[/color]
HTML. And I know that[color=blue]
>in the example below, I can just put runat=server on the[/color]
TRs, but that's[color=blue]
>still not what I'm looking for (in my real-life scenario,[/color]
I may have several[color=blue]
>TRs, and it would be much easier to group them into one[/color]
container).[color=blue]
>
>Here is a pseudo-example, so you can see what I'm trying[/color]
to accomplish:[color=blue]
>
><table>
> <tr>
> <td colspan="4"><as p:Label /></td>
> </tr>
> <tr>
> <td colspan="2"><as p:Label /></td>
> <td colspan="2"><as p:Label /></td>
> </tr>
> <asp:SomeContai nerControl>
> <tr>
> <td><asp:Labe l /></td>
> <td><asp:Labe l /></td>
> <td><asp:Labe l /></td>
> <td><asp:Labe l /></td>
> </tr>
> <tr>
> <td><asp:Labe l /></td>
> <td><asp:Labe l /></td>
> <td><asp:Labe l /></td>
> <td><asp:Labe l /></td>
> </tr>
> <tr>
> <td colspan="2"><as p:Label /></td>
> <td colspan="2"><as p:Label /></td>
> </tr>
> </asp:SomeContain erControl>
> <tr>
> <td><asp:Labe l /></td>
> <td><asp:Labe l /></td>
> <td><asp:Labe l /></td>
> <td><asp:Labe l /></td>
> </tr>
></table>
>
>Thanks so much in advance for any suggestions you may[/color]
have![color=blue]
>
>Jerad
>
>
>.
>[/color]
I would suggest a simple div tag... you could assign it a
id and runat server. It should work.
pepsi
[color=blue]
>-----Original Message-----
>Hi gang. I tried posting this under a different topic[/color]
(Dynamically[color=blue]
>Show/Hide Groups of TR's), but I thought maybe rewording[/color]
the topic and post[color=blue]
>may help people to undersand my intentions.
>
>I'm looking for a simple container control that can wrap[/color]
around a set of[color=blue]
>HTML/server controls just for server-side purposes[/color]
(show/hide) -- without[color=blue]
>rendering any HTML. This seems like it would be a common[/color]
practice, but I've[color=blue]
>not been able to find such a server control.
>
>An asp:PlaceHolder would be perfect since it doesn't[/color]
render any additional[color=blue]
>HTML, but it doesn't allow any other nested <asp:> server[/color]
controls at design[color=blue]
>time (which seems silly). And an asp:Panel can wrap[/color]
around any HTML or[color=blue]
>server controls, but it renders HTML (div in IE and table[/color]
in Netscape --[color=blue]
>which really hoses the HTML). And a <span runat=server>[/color]
doesn't like nested[color=blue]
>TRs (see example below), plus that's still rendering[/color]
HTML. And I know that[color=blue]
>in the example below, I can just put runat=server on the[/color]
TRs, but that's[color=blue]
>still not what I'm looking for (in my real-life scenario,[/color]
I may have several[color=blue]
>TRs, and it would be much easier to group them into one[/color]
container).[color=blue]
>
>Here is a pseudo-example, so you can see what I'm trying[/color]
to accomplish:[color=blue]
>
><table>
> <tr>
> <td colspan="4"><as p:Label /></td>
> </tr>
> <tr>
> <td colspan="2"><as p:Label /></td>
> <td colspan="2"><as p:Label /></td>
> </tr>
> <asp:SomeContai nerControl>
> <tr>
> <td><asp:Labe l /></td>
> <td><asp:Labe l /></td>
> <td><asp:Labe l /></td>
> <td><asp:Labe l /></td>
> </tr>
> <tr>
> <td><asp:Labe l /></td>
> <td><asp:Labe l /></td>
> <td><asp:Labe l /></td>
> <td><asp:Labe l /></td>
> </tr>
> <tr>
> <td colspan="2"><as p:Label /></td>
> <td colspan="2"><as p:Label /></td>
> </tr>
> </asp:SomeContain erControl>
> <tr>
> <td><asp:Labe l /></td>
> <td><asp:Labe l /></td>
> <td><asp:Labe l /></td>
> <td><asp:Labe l /></td>
> </tr>
></table>
>
>Thanks so much in advance for any suggestions you may[/color]
have![color=blue]
>
>Jerad
>
>
>.
>[/color]