c# - Most efficient way of writing multi-select data to a SQL Server backend -
i've got multi-select listbox in asp.net front end using c#. want store data sql server table.
do parse out data in code-behind , send data looping through insert statement c#? or more efficient send comma-delimited string sql server, use table-valued function , insert data table on end?
if it's former, can provide sample code if multi-select field called "matchgender", i'm using userid , table it's being inserted called tblmatches? i'm not sure of c# code necessary loop through selected values in multi-select listbox.
Comments
Post a Comment