Example #1
0
        protected void btnDelete_Click(object sender, EventArgs e)
        {
            string idlist = GetSelIDlist();

            if (idlist.Trim().Length == 0)
            {
                return;
            }

            if (gridView1.Visible == true)
            {
                newsBll.DeleteList(idlist);
            }
            else if (gridView2.Visible == true)
            {
                pageBll.DeleteList(idlist);
            }
            else if (gridView3.Visible == true)
            {
                proBll.DeleteList(idlist);
            }
            else if (gridView4.Visible == true)
            {
                medBll.DeleteList(idlist);
            }

            BindData();
        }
Example #2
0
        protected void btnDelete_Click(object sender, EventArgs e)
        {
            string idlist = GetSelIDlist();

            if (idlist.Trim().Length == 0)
            {
                return;
            }
            bll.DeleteList(idlist);
            BindData();
        }