Ask a Question related to ASP.NET General, Design and Development.
-
Kevin Spencer #1
Re: Looking for simple container control
The problem is that you want to nest this control inside of a table, in
fact, in between rows of the table. For this, you would need to create your
own custom Server Control.
HTH,
Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
[url]http://www.takempis.com[/url]
Big things are made up of
lots of Little things.
"Jerad Rose" <jeradr@corvusdigital.com> wrote in message
news:egQSiwyODHA.2224@TK2MSFTNGP10.phx.gbl...post> Hi gang. I tried posting this under a different topic (Dynamically
> Show/Hide Groups of TR's), but I thought maybe rewording the topic andI've> may help people to undersand my intentions.
>
> I'm looking for a simple container control that can wrap around a set of
> HTML/server controls just for server-side purposes (show/hide) -- without
> rendering any HTML. This seems like it would be a common practice, butdesign> not been able to find such a server control.
>
> An asp:PlaceHolder would be perfect since it doesn't render any additional
> HTML, but it doesn't allow any other nested <asp:> server controls atnested> time (which seems silly). And an asp:Panel 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 likethat> TRs (see example below), plus that's still rendering HTML. And I knowseveral> in the example below, I can just put runat=server on the TRs, but that's
> still not what I'm looking for (in my real-life scenario, I may have> TRs, and it would be much easier to group them into one container).
>
> Here is a pseudo-example, so you can see what I'm trying to accomplish:
>
> <table>
> <tr>
> <td colspan="4"><asp:Label /></td>
> </tr>
> <tr>
> <td colspan="2"><asp:Label /></td>
> <td colspan="2"><asp:Label /></td>
> </tr>
> <asp:SomeContainerControl>
> <tr>
> <td><asp:Label /></td>
> <td><asp:Label /></td>
> <td><asp:Label /></td>
> <td><asp:Label /></td>
> </tr>
> <tr>
> <td><asp:Label /></td>
> <td><asp:Label /></td>
> <td><asp:Label /></td>
> <td><asp:Label /></td>
> </tr>
> <tr>
> <td colspan="2"><asp:Label /></td>
> <td colspan="2"><asp:Label /></td>
> </tr>
> </asp:SomeContainerControl>
> <tr>
> <td><asp:Label /></td>
> <td><asp:Label /></td>
> <td><asp:Label /></td>
> <td><asp:Label /></td>
> </tr>
> </table>
>
> Thanks so much in advance for any suggestions you may have!
>
> Jerad
>
>
Kevin Spencer Guest
-
How to create server control of Container Type
Hi All, I am trying to build one server control which has one panel and within this panel there will be two more panel. I have created two... -
Template control not displaying Container properties
I am trying to create a templated control for asp.net 2.0 using the example found in the documentation, however when outputing <%# Container.Message... -
Building a control to container users html
I want to be able to create a control that will wrap any html placed inside the control tag with some predefine html. For example is the... -
User Control - Accessing Properties from the Container Page
Dear all, Please check my problem - Problem: I have created a User Control(UC1) for navigating between pages. There are 4 buttons on the user... -
ASP.NEt Custom Container control
I am creating a tab control. I want to allow the user to drop controls on my tab control at design time the way one can drop controls onto a panel... -
pepsi #2
Looking for simple container control
Hello,
I would suggest a simple div tag... you could assign it a
id and runat server. It should work.
pepsi
(Dynamically>-----Original Message-----
>Hi gang. I tried posting this under a different topicthe topic and post>Show/Hide Groups of TR's), but I thought maybe rewordingaround a set of>may help people to undersand my intentions.
>
>I'm looking for a simple container control that can wrap(show/hide) -- without>HTML/server controls just for server-side purposespractice, but I've>rendering any HTML. This seems like it would be a commonrender any additional>not been able to find such a server control.
>
>An asp:PlaceHolder would be perfect since it doesn'tcontrols at design>HTML, but it doesn't allow any other nested <asp:> serveraround any HTML or>time (which seems silly). And an asp:Panel can wrapin Netscape -->server controls, but it renders HTML (div in IE and tabledoesn't like nested>which really hoses the HTML). And a <span runat=server>HTML. And I know that>TRs (see example below), plus that's still renderingTRs, but that's>in the example below, I can just put runat=server on theI may have several>still not what I'm looking for (in my real-life scenario,container).>TRs, and it would be much easier to group them into oneto accomplish:>
>Here is a pseudo-example, so you can see what I'm tryinghave!>
><table>
> <tr>
> <td colspan="4"><asp:Label /></td>
> </tr>
> <tr>
> <td colspan="2"><asp:Label /></td>
> <td colspan="2"><asp:Label /></td>
> </tr>
> <asp:SomeContainerControl>
> <tr>
> <td><asp:Label /></td>
> <td><asp:Label /></td>
> <td><asp:Label /></td>
> <td><asp:Label /></td>
> </tr>
> <tr>
> <td><asp:Label /></td>
> <td><asp:Label /></td>
> <td><asp:Label /></td>
> <td><asp:Label /></td>
> </tr>
> <tr>
> <td colspan="2"><asp:Label /></td>
> <td colspan="2"><asp:Label /></td>
> </tr>
> </asp:SomeContainerControl>
> <tr>
> <td><asp:Label /></td>
> <td><asp:Label /></td>
> <td><asp:Label /></td>
> <td><asp:Label /></td>
> </tr>
></table>
>
>Thanks so much in advance for any suggestions you may>
>Jerad
>
>
>.
>pepsi Guest



Reply With Quote

