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 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
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
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
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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....
|
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...
|
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...
|
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.
...
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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,...
|
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...
| |