I want to have a checkboxlist that will retain the values and give the users a better multiple selection list than the standard drop down list.
Since I'm embedding this in another app that autogenerates the select list, I have to have that and that's where I plan on getting the initial values.
Sounds like an interesting project.
The only thing I can think of right now is make a hidden field and store the values from the <select> list into it. Then grab the hidden field in your data in your .NET code and parse it to generate your checkBoxList:
Eg...create a hidden field in your form
->you can do this in your .Net code using ClientScript.RegisterHiddenField("idOfHiddenField" ,"intialValue")
Then use your JavaScript to populate this hidden field (just add all the values of each option in your select list separated by some delimiter)
Then in your server side code grab the hidden field value:
Dim value As String = postCollection(IdOfHiddenField)
Then use the String.Split('delimiter') on your hidden field ...
Since it's your JavaScript that will generate the value for the hidden field you know what its value is delimited by.
Hope you see where I'm going with this....hope this helps!
-Frinny