protected void btnPost_Click(object source, EventArgs e) { OdbcConnection Conn = new OdbcConnection(ConnStr); Conn.Open(); OdbcCommand cmd = Conn.CreateCommand(); cmd.CommandText = "INSERT INTO Post VALUES ('" + txtName.Text + "', '" + txtSubject.Text + "', '" + txtPost.Text + "');"; cmd.Connection = Conn; cmd.ExecuteNonQuery(); lblConn.Text = "Done."; Conn.Close(); }