473,405 Members | 2,294 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,405 software developers and data experts.

Placeholder To Dynamically Generate CheckBoxList

Hi,

Does anyone know how I would code a dynamically generated CheckBoxList
within a PlaceHolder?

I have a function that returns an array, I then want to loop throuth the
array and create CheckBoxes with values returned from the array. So far all
I have are CheckBoxes without values across my screen.

Also, how would I place a "<br />" between all these CheckBoxes so that they
left align?

Do I need to dynamically generate a table, row and cell for each of these
CheckBoxes?

Many thanks in advance,

Jeff
Nov 16 '05 #1
2 2778
http://www.asp101.com/articles/matt/...ts/default.asp is an
example

"Jeff Johnson" <je**********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

Does anyone know how I would code a dynamically generated CheckBoxList
within a PlaceHolder?

I have a function that returns an array, I then want to loop throuth the
array and create CheckBoxes with values returned from the array. So far all I have are CheckBoxes without values across my screen.

Also, how would I place a "<br />" between all these CheckBoxes so that they left align?

Do I need to dynamically generate a table, row and cell for each of these
CheckBoxes?

Many thanks in advance,

Jeff

Nov 16 '05 #2
You rock!

Thanks for the help,

JJ

"Greg Young" <gr********@planetbeach.com> wrote in message
news:uH*************@tk2msftngp13.phx.gbl...
http://www.asp101.com/articles/matt/...ts/default.asp is an
example

"Jeff Johnson" <je**********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

Does anyone know how I would code a dynamically generated CheckBoxList
within a PlaceHolder?

I have a function that returns an array, I then want to loop throuth the
array and create CheckBoxes with values returned from the array. So far

all
I have are CheckBoxes without values across my screen.

Also, how would I place a "<br />" between all these CheckBoxes so that

they
left align?

Do I need to dynamically generate a table, row and cell for each of these CheckBoxes?

Many thanks in advance,

Jeff


Nov 16 '05 #3

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

Similar topics

1
by: chak | last post by:
I have developed a form which dynamically builds textbox, radiobuttonlist, checkboxlist controls from parameters in a table, and somehow manages to maintain state (of data keyed in by user)....
4
by: blue | last post by:
I have a drop-down list, a radio button list and a submit button. I'm adding these controls to a table and I'm adding the table to a Placeholder. I'm adding it to the Placeholder because I don't...
1
by: Fraggle | last post by:
I have a placeholder in a repeater, along with a textbox. For each "repeat unit" I call the onitemdatabound method and decide what I am going to put in the placholder, checkboxlist or...
1
by: Yannis CORRE via .NET 247 | last post by:
Hello, I have two questions : 1 - I want to generate dynamically a personnalized table from a dataset. I want to create each of my rows and columns. So, I use a HtmlTable and I build my Table...
3
by: Elad Volpin | last post by:
Can someone please explain this: I created a new webform with a PlaceHolder and a Button. My Page_Load contains the following code: private void Page_Load(object sender, System.EventArgs e)...
0
by: Boris | last post by:
When I dynamically create CheckButtonList, I add ListItem(s) to my CheckButtonList object chkList chkList.Items.Add(new ListItem("My Text", "My Value")); The resulting HTML doesn't contain...
0
by: KBuser | last post by:
I'm building an internal site which will allow for extremely customizable queries to be run against our SQL Server (2000) DB. The page is done in ASP .net 2.0, with C# code behind. The initial...
1
by: KBuser | last post by:
I'm building an internal site which will allow for extremely customizable queries to be run against our SQL Server (2000) DB. The page is done in ASP .net 2.0, with C# code behind. The initial...
1
by: terminul | last post by:
Hi I have a datalist which loops through the categories and within the datalist I have a CheckBoxList which are bound on the DataList's OnItemDataBound. The only problem I have is retrieving...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...
0
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
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...

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.