This approach works when I set the code in newcodeblock to: GetAllValues = "blue" but obviously with the wrong value.
What I need to know is which parameter (sender or e) can I pass to the function GetAllParmeters to extract a reference to the mutliselect listbox so that I can get the selected values and assemble them into their correct form (e.g. a concatonated string).
If a reference to the listbox cannot be obtained at this point, is there a way of getting the correct values another way?
Protected Sub SqlDataSource1_Updating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceCommandEventArgs) Handles SqlDataSource1.Updating
"@value").Value = GetAllValues(sender)
Private Function GetAllValues(ByVal sender As Object) As System.String
'do something to set a reference to the listbox so selected values can be concatonated