Please can anyone tell me how to pass all selected listbox items into paramaterised SQL server query.
For example if I have a listbox containing the following items [apples, pears, bananas, grapes, oranges] and apple, pears and bananas have been selected by the user onclick. How do I pass apple, pear and bananas as a parameter into sql server paramaterised query using c# so that sql can be dynamially created and retrieve data into datagrid based on users selected values
And then how would I build up as I have several multiple listboxes.
I've tried googling for examples but no luck...I know how to get values from on selected value say if its from dropdown list but dont uderstand how to do for multi select listboxes.