mevada kamlesh

mevada kamlesh

  • NA
  • 66
  • 29.2k

SqlException was unhandled ,Invalid object name 'Mobil'.

Mar 21 2018 5:21 AM
SqlException was unhandled ,Invalid object name 'Mobil'.error found Runtime 
 
Our Code is:-
 
private void button2_Click(object sender, EventArgs e)
{
con.Open();
SqlCommand cmd = new SqlCommand(@"INSERT INTO Mobil
(First, Last, Mobile, Email, Category)
VALUES ('"+textBox1.Text+"','"+textBox2.Text+"','"+textBox3.Text+"','"+textBox4.Text+"','"+comboBox1.Text+"')",con);
cmd.ExecuteNonQuery();
con.Close();
}
}
}

Answers (6)