请教:为什么用了eweb的编辑器后文章内容更新后不提示更新成功了?
为什么用了eweb的编辑器后文章内容更新后不提示更新成功了?
不用编辑器的时候可以提示更新成功.加了编辑器后就没有提示了.请高手指点.
单击事件:
protected void Button1_Click(object sender, EventArgs e)
{
string titless;
titless= titles.Text;
string Contentss ;
Contentss = Content.Text;
string writters;
writters= writter.Text;
int idd = Convert.ToInt32(idid.Text);
OleDbConnection con = new OleDbConnection(getconn());
string query;
query = "update ZD_Article set title='" + titless + "',writter='" + writters + "',Content='" + Contentss + "' where id=" + idd;
con.Open();
OleDbCommand cmd = new OleDbCommand(query, con);
if (Convert.ToInt32(cmd.ExecuteNonQuery())>0);
{
Response.Write("<script>alert('更新成功!');location.href='default.aspx';</script>");
}
con.Close();
}