Пример #1
0
        protected void gvCommittee_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            int    committeeId = Convert.ToInt32(gvCommittee.Rows[e.RowIndex].Cells[1].Text);
            string committee   = WebApiConsume.DeleteCommittee(Utilities.BASE_URL + "/api/Committees", committeeId);

            if (committee == "")
            {
            }
            else
            {
                ScriptManager.RegisterClientScriptBlock(this.Page, this.Page.GetType(), "تم", "alert('تم مسح بيانات اللجنة بنجاح');", true);

                gvCommittee.DataSource = ShowDeptCommittees(Convert.ToInt32(Request.QueryString["dId"]));
                gvCommittee.DataBind();
            }
        }