foreach (ListViewItem item in listBox2.Items) try { SqlCommand cmd =new System.Data.SqlClient.SqlCommand(); comd.CommandText= ("INSERT INTO Symptom(s1, s2, s2, s4 )VALUES(@s1,@s2,@s3), s4"); comd.ExecuteNonQuery(); } catch (Exception ex) { MessageBox.Show(ex.Message, Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error); } comd.Connection.Close(); comd.Dispose();
foreach (string list in listBox1.Items) { }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)