Thanks SagarP http://www.emanonsolutions.net http://emanonsolutions.blogspot.com/
string conStr = 'Con string'; SqlConnection con = new SqlConnection(conStr); con.Open(); for (cnt = 0; cnt <= listView1.SelectedItems.Count - 1; cnt++) { string query = "insert into table values('" + listView.Items[cnt].Text + "')"; SqlCommand cmd = new SqlCommand(query, con); retval=cmd.ExecuteNonQuery(); } con.Close();
Mark this as answer, if it is..... With regards Nishithraj Narayanan
Login to post response