Connecting Tech Pros Worldwide Help | Site Map

Dynamic checkboxes and selection

sck10
Guest
 
Posts: n/a
#1: Jun 27 '08
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


Fernando Rodriguez
Guest
 
Posts: n/a
#2: Jun 27 '08

re: Dynamic checkboxes and selection


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" <sck10@online.nospamwrote in message
news:OutJnCxqIHA.2520@TK2MSFTNGP02.phx.gbl...
Quote:
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
>

sck10
Guest
 
Posts: n/a
#3: Jun 27 '08

re: Dynamic checkboxes and selection


Thanks Fernando,

sck10


"Fernando Rodriguez" <frodriguez@mcp.microsoft.comwrote in message
news:eqbcJ6%23qIHA.4476@TK2MSFTNGP06.phx.gbl...
Quote:
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" <sck10@online.nospamwrote in message
news:OutJnCxqIHA.2520@TK2MSFTNGP02.phx.gbl...
Quote:
>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
>>
>
>

Closed Thread