473,487 Members | 2,616 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Container for dynamically generated controls.

Hi,
I'm looking for a way to dynamically generate a label and a button side by
side dynamically.

Label1 Button1
Label2 Button2
Label..n Button..n

Is this possible with a container like the Placeholder, or is it better to
make a control that contains the label and button objects?

Thanks.
D.

-----------------
Diving the deep blue.
Dec 15 '06 #1
3 1052
Ok,
I think I'm going to use table as a container.
Anyone got a better solution? Please let me know!

Thanks!!
D.

"Dahab" <Di****@net.comwrote in message
news:%2*****************@TK2MSFTNGP02.phx.gbl...
Hi,
I'm looking for a way to dynamically generate a label and a button side by
side dynamically.

Label1 Button1
Label2 Button2
Label..n Button..n

Is this possible with a container like the Placeholder, or is it better to
make a control that contains the label and button objects?

Thanks.
D.

-----------------
Diving the deep blue.

Dec 15 '06 #2
Why not to use a gridview/datalist/repeater ?

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"Dahab" <Di****@net.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Ok,
I think I'm going to use table as a container.
Anyone got a better solution? Please let me know!

Thanks!!
D.

"Dahab" <Di****@net.comwrote in message
news:%2*****************@TK2MSFTNGP02.phx.gbl...
>Hi,
I'm looking for a way to dynamically generate a label and a button side
by side dynamically.

Label1 Button1
Label2 Button2
Label..n Button..n

Is this possible with a container like the Placeholder, or is it better
to make a control that contains the label and button objects?

Thanks.
D.

-----------------
Diving the deep blue.


Dec 17 '06 #3
I think you should you use div as a container and use css to align the
controls.

This article,
http://www.webcredible.co.uk/user-fr...ss-forms.shtml
discuss how to align the controls..
Eliyahu Goldin wrote:
Why not to use a gridview/datalist/repeater ?

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"Dahab" <Di****@net.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Ok,
I think I'm going to use table as a container.
Anyone got a better solution? Please let me know!

Thanks!!
D.

"Dahab" <Di****@net.comwrote in message
news:%2*****************@TK2MSFTNGP02.phx.gbl...
Hi,
I'm looking for a way to dynamically generate a label and a button side
by side dynamically.

Label1 Button1
Label2 Button2
Label..n Button..n

Is this possible with a container like the Placeholder, or is it better
to make a control that contains the label and button objects?

Thanks.
D.

-----------------
Diving the deep blue.
Dec 18 '06 #4

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

Similar topics

1
3351
by: Don Hames | last post by:
I have a windows application that has a split container in the client area. In the left panel, I added controls via the designer in VS 2005. In the right panel, I want to dynamically create and...
1
3533
by: Don Hames | last post by:
I have created a window application in VS 2005 using C#. In the main form, I added a split container. I added controls to the left panel1 from the toolbox and they all work fine. I want to respond...
2
2521
by: macca | last post by:
Hi, I am writing a GUI application. It will have a number of user defined controls( I plan to use/create a user defined control that will output alarm states that the user can also select and...
6
3348
by: Steve Booth | last post by:
I have a web form with a button and a placeholder, the button adds a user control to the placeholder (and removes any existing controls). The user control contains a single button. I have done all...
6
436
by: Nathan Sokalski | last post by:
I am trying to dynamically add controls to my page, but am having trouble with controls such as buttons. I have been able to add simple controls such as Label controls, because they can be placed...
9
7025
by: netasp | last post by:
hi all, how can I populate one aspx form when page is loading based on page ID? for example: loading page A (to search for VB code) would display labels and texboxes, dropdown lists all related...
12
13118
by: vbnewbie | last post by:
I am having problems accessing properties of dynamically generated objects in VB2005. Can someone please help? In a nutshell: My app creates an equal number of checkboxes and labels that share the...
4
4449
by: Lewis Holmes | last post by:
Hi I have the following situation in one of my asp.net pages. The user can add multiple table rows to a form by selecting a button. These rows can contain asp.net controls. When this button is...
5
4073
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...
0
7106
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,...
0
6967
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...
0
7181
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...
1
6846
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...
0
7349
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...
0
4565
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...
0
3076
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...
0
1381
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 ...
0
267
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...

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.