Let say you have two dropdownlists named ddl1 and ddl2, to insert the selected values of these 2 dropdownlists to database,
sql = "INSERT INTO tablename (column1, column2) Values(@0,@1)";
command = new SqlCommand(sql);
command.Parameters.AddWithValue("@0",ddl1.SelectedValue);
command.Parameters.AddWithValue("@1",ddl2.SelectedValue);
command.ExecuteNonQuery();
Find out more:
http://www.w3schools.com/sql/sql_injection.asp[
^]