T
tim payne
Is it possible to access the datasource of a checkbox list, in the same way
as you can with say a datalist or datagrid? I'm trying to use the
onitemdatabound event to check the datasource to see if a column's value is
set to a certain number and check the checkbox item if this is the case. I
can't seem to get it to work though, is this possible with a checkboxlist?
If so, does anyone have any examples? I've had a good search round the web,
and all the examples I found involved binding the list, and then getting a
second datareader and looping through that to check the checkboxes, which
seems like a bit of overkill.
Any help greatly appreciated,
Tim.
as you can with say a datalist or datagrid? I'm trying to use the
onitemdatabound event to check the datasource to see if a column's value is
set to a certain number and check the checkbox item if this is the case. I
can't seem to get it to work though, is this possible with a checkboxlist?
If so, does anyone have any examples? I've had a good search round the web,
and all the examples I found involved binding the list, and then getting a
second datareader and looping through that to check the checkboxes, which
seems like a bit of overkill.
Any help greatly appreciated,
Tim.