SqlConnection con = new SqlConnection();
con.ConnectionString = "Data Source=.\\sqlexpress;Initial Catalog=college_education;User ID=sa;Password=system;";
con.Open();
string q = "update cart set status='CO' Where user_name='" + Session["user"] + "' and status='ATC'";
SqlCommand com = new SqlCommand(q,con);
com.ExecuteNonQuery();
{
Response.Write("<script>alert('Your Order is Placed Successfully. Our Agent will contact you shortly.')</script>");
}
q = "PUT YOUR INSERT STATEMENT HERE;
com = new SqlCommand(q,con);
com.ExecuteNonQuery();