473,756 Members | 6,098 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"><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 have!
Jerad
.

Nov 17 '05 #1
0 1732

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

Similar topics

10
3052
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 implemented so not sure which is best to use or if i should implement another data structure. Perhaps any...
1
1739
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
7645
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 and replaced it - but it did not appear in the Intellisense list.
2
9786
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
2501
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
1022
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
2286
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
1770
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 sure I have just omitted something simple, but I cannot see it. I am using VS 2005.
5
4127
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> <asp:textbox />
0
9271
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9836
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9707
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7242
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6533
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5139
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3804
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2664
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.