473,387 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Dynamically loading check box controls horizontally

How can you do this using the placeholder control? When I call the
add method, the check boxes show up, but they are displayed
vertically. Should I be using the literal control? Any help would be
appreciated.

Stuart Miller
Nov 18 '05 #1
5 1970
Hi,

couldn't you use CheckBoxList for this?

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
http://blogs.aspadvice.com/joteke

"Stuart Miller" <ml****@netscape.net> wrote in message
news:62**************************@posting.google.c om...
How can you do this using the placeholder control? When I call the
add method, the check boxes show up, but they are displayed
vertically. Should I be using the literal control? Any help would be
appreciated.

Stuart Miller

Nov 18 '05 #2
Make sure the width of the placeholder is larger than the controls you want
to add.

For example, if you would like to add 3 checkboxes that are 50px wide, your
placeholder should be set to be at least 151px. If it's not, the palce
holder will automatically grow down, not wide.

Steve
"Stuart Miller" <ml****@netscape.net> wrote in message
news:62**************************@posting.google.c om...
How can you do this using the placeholder control? When I call the
add method, the check boxes show up, but they are displayed
vertically. Should I be using the literal control? Any help would be
appreciated.

Stuart Miller

Nov 18 '05 #3
Thank you for your response. I looked into this, but there is no
property for "Width" in the Placeholder control. How would I adjust
the width?

"Steve Caliendo" <sc*******@epion.com> wrote in message news:<OL**************@TK2MSFTNGP10.phx.gbl>...
Make sure the width of the placeholder is larger than the controls you want
to add.

For example, if you would like to add 3 checkboxes that are 50px wide, your
placeholder should be set to be at least 151px. If it's not, the palce
holder will automatically grow down, not wide.

Steve
"Stuart Miller" <ml****@netscape.net> wrote in message
news:62**************************@posting.google.c om...
How can you do this using the placeholder control? When I call the
add method, the check boxes show up, but they are displayed
vertically. Should I be using the literal control? Any help would be
appreciated.

Stuart Miller

Nov 18 '05 #4
Sorry about that. I only ever use the panel control. If you don't have a
compelling reason to use the placeholder for dynamic controls, try the panel
control. (At least you can set it's width)

Steve
"Stuart Miller" <ml****@netscape.net> wrote in message
news:62**************************@posting.google.c om...
Thank you for your response. I looked into this, but there is no
property for "Width" in the Placeholder control. How would I adjust
the width?

"Steve Caliendo" <sc*******@epion.com> wrote in message

news:<OL**************@TK2MSFTNGP10.phx.gbl>...
Make sure the width of the placeholder is larger than the controls you want to add.

For example, if you would like to add 3 checkboxes that are 50px wide, your placeholder should be set to be at least 151px. If it's not, the palce
holder will automatically grow down, not wide.

Steve
"Stuart Miller" <ml****@netscape.net> wrote in message
news:62**************************@posting.google.c om...
How can you do this using the placeholder control? When I call the
add method, the check boxes show up, but they are displayed
vertically. Should I be using the literal control? Any help would be
appreciated.

Stuart Miller

Nov 18 '05 #5
Thank you for your post. This appears to work like I want it to. The
CheckBoxList has a RepeatDirection property which allows the controls
to be rendered left to right. Most usefull.

"Teemu Keiski" <jo****@aspalliance.com> wrote in message news:<Os**************@tk2msftngp13.phx.gbl>...
Hi,

couldn't you use CheckBoxList for this?

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
http://blogs.aspadvice.com/joteke

"Stuart Miller" <ml****@netscape.net> wrote in message
news:62**************************@posting.google.c om...
How can you do this using the placeholder control? When I call the
add method, the check boxes show up, but they are displayed
vertically. Should I be using the literal control? Any help would be
appreciated.

Stuart Miller

Nov 18 '05 #6

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

Similar topics

7
by: Tim T | last post by:
Hi, I have the need to use dynamically loaded user controls in a webform page. I have the controls loading dynamically, and that part works fine. this is the code used in a webform to dynamically...
1
by: Josh | last post by:
Hi Guys, I have been having a big problem with trying to pass parameters into a user control when the user control is dynamically loaded into a placholder. I am developing in c#. I have get...
1
by: Kamal Jeet Singh | last post by:
Hi Friends !! I am have facing problem in controlling the dynamically created controls on web page. The problem Scenario is Scenario:- My requirement is to load the web user controls on the...
1
by: Kamal Jeet Singh | last post by:
Hi Friends !! I am facing problem in controlling the dynamically created controls on web page. The problem Scenario is Scenario:- My requirement is to load the web user controls on the web...
6
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...
2
by: A.Wussow | last post by:
Hi Everybody, i want to load dynamically content from some user controls (with forms, or some data-controls) using atlas. So i use an UpdatePanel for loading the user control into a placeholder....
2
by: nemesis.saurabh | last post by:
hi, Can we dynamically load a user control in the web form. problem i am facing is i have 2 user controls: uc1 and uc2. when my page is loading the functions and variables in the uc1 is...
1
by: Bob Rock | last post by:
Hello, I'm new to ASP.NET and I've been looking into the topic of dynamically loading (typically accomplished with a LoadControl followed by a MyControl.Controls.Add()) both user controls and...
8
by: BillE | last post by:
When I create a control dynamically and it grows according to the content, the control Height property still returns the original default control height instead of the height after expanding. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.