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

Dynamic checkboxes and selection

Hello,

I have a list of products (SQL Server) that I need to show with check boxes
next to them. Once they submit the form, the items checked will be inserted
into a table. I think I need to use a CheckBoxList, but how do I show what
has been matched in the future. For example, I check 5 of the 10 products
for a particular customer. When I edit that customer's information, I want
to show the 10 products with the 5 products that I check previously to be
checked.

Any help with this would be appreciated...
--
Thanks in advance,

sck10
Jun 27 '08 #1
2 852
You need to iterate through the collection of items and set the Checked
property to true for the ones that you want checked.

You can also use a Repeater or a DataView with a checkbox column and bind
the checkbox's Checked property to a field on your datasource.
"sck10" <sc***@online.nospamwrote in message
news:Ou**************@TK2MSFTNGP02.phx.gbl...
Hello,

I have a list of products (SQL Server) that I need to show with check
boxes next to them. Once they submit the form, the items checked will be
inserted into a table. I think I need to use a CheckBoxList, but how do I
show what has been matched in the future. For example, I check 5 of the
10 products for a particular customer. When I edit that customer's
information, I want to show the 10 products with the 5 products that I
check previously to be checked.

Any help with this would be appreciated...
--
Thanks in advance,

sck10

Jun 27 '08 #2
Thanks Fernando,

sck10
"Fernando Rodriguez" <fr********@mcp.microsoft.comwrote in message
news:eq****************@TK2MSFTNGP06.phx.gbl...
You need to iterate through the collection of items and set the Checked
property to true for the ones that you want checked.

You can also use a Repeater or a DataView with a checkbox column and bind
the checkbox's Checked property to a field on your datasource.
"sck10" <sc***@online.nospamwrote in message
news:Ou**************@TK2MSFTNGP02.phx.gbl...
>Hello,

I have a list of products (SQL Server) that I need to show with check
boxes next to them. Once they submit the form, the items checked will be
inserted into a table. I think I need to use a CheckBoxList, but how do
I show what has been matched in the future. For example, I check 5 of
the 10 products for a particular customer. When I edit that customer's
information, I want to show the 10 products with the 5 products that I
check previously to be checked.

Any help with this would be appreciated...
--
Thanks in advance,

sck10


Jun 27 '08 #3

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

Similar topics

1
by: middletree | last post by:
Hate to post this in a separate post, but felt that the last thread was too far down to get noticed. It is called dynamic checkboxes, and it contained some good advice for me, but it led to...
8
by: DylanM | last post by:
I have some checkboxes that are generated from the results of a database search. At the moment, the checkboxes are part of a table making up a form. Users are going through the form, clicking the...
6
by: Craig Keightley | last post by:
I have a page that has n number of radio groups (yes/No) how can i prevent the form being submitted if more than one radio group is not selected? By default all radio groups are unchecked ...
2
by: trank | last post by:
I created some checkboxes(<input type=checkbox>) dynamically,and then I'd like to access these checkboxes in code behind using C#. For they are not standard controls like Windows Checkbox, I can't...
0
by: pbb | last post by:
I have a web page on which I dynamically create controls based on the selection a user makes from a dropdownlist (this ddl is not dynamic). Depending on the user's selection, the controls could be...
2
by: raj chahal | last post by:
hi there I want to collect user input. I have a collection of 30 checkboxes that I would like the user to pickout from. The information then will be recorded to a database somehow. Finally the...
3
by: Colin | last post by:
Hello, I can manage quite well in ASP but would like some advice in the best way to achieve dynamic layout in ASP.NET and still keep the page and code separate. Let's say I already have a...
2
by: assgar | last post by:
Hi Developemnt on win2003 server. Final server will be linux Apache,Mysql and PHP is being used. I use 2 scripts(form and process). The form displays multiple dynamic rows with chechboxs,...
2
by: Beacherboy | last post by:
Hi All, This one is a bit complex, so I'll try to be as logical explaining the issue as humanily possible. ASP/VBScript/MySQL Issue: Creating dynamic variables while there is an unknown...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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.