I want to improve my coding skills. How do I write this code with concatenationstring query = insert into StudentInfo values (' + textBox1.Text.Trim() + ', ' + Name.Trim() + ', ' + comboBox1.SelectedItem.ToString() + ') ;SqlCommand command = new SqlCommand(query, cn);command.ExecuteNonQuery();
INSERTing a student info record based on form inputs
c#;strings;sql;form