I'm loading a checked listbox dynamically from a list of statuses from a table with similar values:
I have another table with a pipe-delimited string that is a list of default statuses to be checked: '2|3|8'
I have loaded the checked listbox with the Description showing as the text and have each selection checked as listed in the pipe-delimited string. However, I also want to be able to change these values (check different ones) and save these to the database. My goal is to create a new pipe-delimted string of these ID's and update the database. My problem is that I need to have a correspondence between the ID and Description within the listbox. Is there another property that I can set for each check box item where I can store the ID?
thanks in advance for any help
Code:
ID Description
1 Pending
2 Done
3 Processing
4 Dead
etc.
I have loaded the checked listbox with the Description showing as the text and have each selection checked as listed in the pipe-delimited string. However, I also want to be able to change these values (check different ones) and save these to the database. My goal is to create a new pipe-delimted string of these ID's and update the database. My problem is that I need to have a correspondence between the ID and Description within the listbox. Is there another property that I can set for each check box item where I can store the ID?
thanks in advance for any help