Пример #1
0
 protected void gridField_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "del")
     {
         bool success = news.updateDo(e.CommandArgument.ToString());
         if (success)
         {
             AjaxAlert.AlertMsgAndNoFlush(this, "发送成功");
             GridBind();
             Pagination2.Refresh();
         }
         else
         {
             AjaxAlert.AlertMsgAndNoFlush(this, "发送失败");
         }
     }
 }