SqlCommand Command = new SqlCommand("insert into location values (@loc,@reg", _con); Command.Parameters.AddWithValue("@loc", txtloc.Text); Command.Parameters.AddWithValue("@reg", txtreg.Text); _con.Open(); Command.ExecuteNonQuery(); _con.Close();
insert into location values (@loc,@reg)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)