protected void Confirm_Click(object sender, EventArgs e) { string newTitle = Title.Text.Trim(); string newText = tbContent.Text.Trim(); Article art = new Article(); art.Article_SetUpdate(newTitle, newText, aid); bool i = new ArticlesManage().Edit(art); if (i == true) Response.Write("<script language=javascript>alert('修改成功!')</script>"); else Response.Write("<script language=javascript>alert('修改失败!')</script>"); SetData(); }