Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Dynamic checkboxes and selection

0 views
Skip to first unread message

sck10

unread,
Apr 30, 2008, 6:22:17 PM4/30/08
to
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

unread,
May 1, 2008, 8:50:24 PM5/1/08
to
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.nospam> wrote in message
news:OutJnCxq...@TK2MSFTNGP02.phx.gbl...

sck10

unread,
May 3, 2008, 9:13:23 AM5/3/08
to
Thanks Fernando,

sck10


"Fernando Rodriguez" <frodr...@mcp.microsoft.com> wrote in message
news:eqbcJ6%23qIH...@TK2MSFTNGP06.phx.gbl...

0 new messages