Yes I realize that, but in this case the "text" is actually very complex html and also is completely different form the value. Also, it could be that the "text" would be the same for items with two different values.
I think I may need to have non-.NET checkboxes for this scenario since it doesn't seem to properly handle checkboxes.
Main Topics
Browse All Topics





by: Solar_FlarePosted on 2008-01-07 at 17:55:09ID: 20605311
something is indeed screwy with databinding the listitemcollection. I copied your code and got the same result.
Value("tes t1");" it would find the item.
I also used a datatable as a datasource and although there was no "value=" in the generated HTML the correct values were there on postback - the values must be in the viewstate and the checkboxlist works purely by the name/text of each checkbox?
anyway, what it seems to be doing is using the Text property value for the Value, if you use "cblResources.Items.FindBy
I also found that skipping the intermediary ListItemCollection makes it behave correctly, so the problem would appear to be internally in transferring the items from your collection in the checkboxlist's collection.
Select allOpen in new window