This is the scenario:
My app will have the following:
- A listbox (The checkbox property enabled) that will display a list of Something.
- The user will select from the listbox (multiselect) by using the checkbox.
- I will loop into All the checked items and store the ID's into an array. I will store the ID's into something like this separating the ID with a comma (1,2,3,4) and then I will use length -1 to delete the last comma.
How can I convert the string 1,2,3,4 into an integer type of data if my stored procedure is like this?
Select * from tblSomething Where ID in (1,2,3,4)