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();
}
}
}
Manav PandyaPosted Mar 21, 2018, 5:29 AM
mevada kamleshPosted Mar 21, 2018, 5:51 AM
Manav PandyaPosted Mar 21, 2018, 5:45 AM
mevada kamleshPosted Mar 21, 2018, 5:43 AM
Nitin SontakkePosted Mar 21, 2018, 5:31 AM
Nitin SontakkePosted Mar 21, 2018, 5:29 AM