Мой код
public void SaveEdits ()
{
string SQL = "ОБНОВИТЬ SURVEY_CAMPAIGN SET OUTGOING_VDN =" + txtOutgoing.Value + "И LANG_CD =" + txtlang.Value + " + txtExit.Value +
"WHERE CAMPAIGN_ID =" + CampignsDRP.SelectedValue;
пытаться
{
использование (OracleConnection conn = SingleConnection.Instance.ActiveConn)
{
conn.Open ();
OracleCommand cmd = conn.CreateCommand ();
OracleDataAdapter dataAdapter = новый OracleDataAdapter (SQL, conn);
System.Data.DataSet db = new System.Data.DataSet ();
cmd.CommandType = CommandType.Text;
cmd.CommandText = SQL;
int result = cmd.ExecuteNonQuery();
dataAdapter.Fill(db, "Campaign");
cmd.Dispose();
conn.Close();
}
ScriptManager.RegisterStartupScript(this.Page, Page.GetType(), "text", "UpdateCompleted()", true);
}
catch (Exception ex)
{
string error = ex.Message;
ScriptManager.RegisterStartupScript(this.Page, Page.GetType(), "text", "ShowError('" + error + "')", true);
LogUtil.Debug("Page Campaign Update Exception Occured " + ex.Message);
}
}