/// <summary> /// 删除相应函数 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void OnDelArticle(object sender, EventArgs e) { LinkButton lbBtn = sender as LinkButton; int ArticleID = Convert.ToInt32(lbBtn.CommandArgument); if (ArticleManager.DeleteArticleByID(ArticleID) == 0) { ClientScript.RegisterStartupScript(GetType(), "", "alert('删除过程出错!')", true); } PageDataBind(); }