Exemple #1
0
        protected void BtnAccept_Click(object sender, EventArgs e)
        {
            //temp
            UserCtrl   userCtrl = new UserCtrl();
            List <int> idList   = new List <int>();

            foreach (GridViewRow row in UserRequestGrid.Rows)
            {
                CheckBox cb = (CheckBox)row.FindControl("CheckBox1");
                if (cb != null && cb.Checked)
                {
                    idList.Add(Convert.ToInt32(row.Cells[5].Text));
                }
            }

            userCtrl.approveRequest(idList);
            UserRequestGrid.DataBind();
        }