I'm creating a Content Management System. Users must be able to delete content from a database. This does not delete or give an error message, it just does nothing.
protected void deleteBut_Click(object sender, EventArgs e)
{
string A_ID = Request.QueryString["A_ID"];
string sel = "DELETE FROM acomodation WHERE A_ID=" + A_ID;
string s = "Provider=Microsoft.Jet.OLEDB.4.0; " +
"Data Source=" + Server.MapPath("calendar.mdb");
OleDbConnection con = new OleDbConnection(s);
con.Open();
OleDbCommand cmd = new OleDbCommand(sel, con);
cmd.ExecuteNonQuery();
con.Close();
con.Dispose();
}