473,516 Members | 3,488 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

-----Original Message-----
Hi gang. I tried posting this under a different topic (DynamicallyShow/Hide Groups of TR's), but I thought maybe rewording the topic and postmay help people to undersand my intentions.

I'm looking for a simple container control that can wrap around a set ofHTML/server controls just for server-side purposes (show/hide) -- withoutrendering any HTML. This seems like it would be a common practice, but I'venot been able to find such a server control.

An asp:PlaceHolder would be perfect since it doesn't render any additionalHTML, but it doesn't allow any other nested <asp:> server controls at designtime (which seems silly). And an asp:Panel can wrap around any HTML orserver 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 nestedTRs (see example below), plus that's still rendering HTML. And I know thatin the example below, I can just put runat=server on the TRs, but that'sstill not what I'm looking for (in my real-life scenario, I may have severalTRs, 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
.

Nov 17 '05 #1
0 1717

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
3032
by: Jason | last post by:
Hi, I have a few million data items being received by my program and I wish to store them in a list, with each item being inserted in any position in the list. Any performance tips so that my program runs ok? I have checked out the STL and have thought of using vector, set, list, deque and map. I dont know how these things are...
1
1725
by: timmso | last post by:
I am trying to build a simple asp.net project. What sort of control do I need to use to simply display a list of links in a table format? For example, let's say I have a database table: tblNames ID Name 1 Blue 2 Grey 3 Green
1
7619
by: CJM | last post by:
I've copied (& modified) some code from MSDN which uses a Repeater control, but I'm getting an error: Unexpected end of file looking for </HeaderTemplate> As far as I can see I've not made an dramatic changes, and if the MSDN code would work, I would also expect mine to work. As far as the </HeaderTemplate> tag is concerned, I removed it...
2
9757
by: Sam | last post by:
Please help! I want to create a user control that can act as a container for other controls (like a panel or a groupbox). The control will consist of a panel that acts as the container for external controls plus some other stuff. I hoped that all I needed to do would be to implement System.ComponentModel.IContainer,
8
2489
by: gumi | last post by:
Hi, I am looking for code for a alarm clock program that pops up a messege to be used as part of my VB.Net class project. Any help is very much appreciated. Thanks
2
1012
by: David Gacek | last post by:
I'm just wondering how can i get the properties of the container that the control resides on in vb6 is was quite simple. I want to get the forms width and heigth thanks
2
2273
by: Eniac | last post by:
*argh* ... *pull hairs* I've recently started developing from ASP to ASP.NET The switch was fairly smooth since i had done some VB.net before ... then came...FORMS! :) I find it astounding at how difficult it has become to control a form, something that was so dead easy in ASP.
1
1760
by: Chris Dunaway | last post by:
I have created a simple Extender Provider and when I drop it onto a form, it appears in the component tray, but none of the controls it is supposed to provide a property for show the property in the PropertyGrid! Here is the class. The GlassButton is a custom button control that derives from button and I just do some custom painting. I am...
5
4080
by: gerry | last post by:
I am trying to create a custom container control that will only ever contain a specific type of control. At design time, when a control of a different type is added to the container I would like to wrap the control in the proper control type - which is also a container. At design time I want to be able to turn this : <my:container>...
0
7273
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7182
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7574
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7136
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5106
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3265
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3252
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
487
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.