protected void gv_allArticle_RowCommand(object sender, GridViewCommandEventArgs e) { article = new Article(); Articles articles = new Articles(); if (e.CommandName == "Accept") { articles.ArticleId = Convert.ToInt32(e.CommandArgument); if (article.AcceptArticle(articles) == true) { lbl_Msg.Text = ""; } else { lbl_Msg.Text = "there are wrong ..."; } } }