/*************To delete the selected records ****************/

        protected void btnDelete_Click(object sender, EventArgs e)
        //{
        //    int i = 0;
        //    foreach (GridViewRow gvr in this.gvCAMSProfileReject.Rows)
        //    {
        //        if (((CheckBox)gvr.FindControl("chkBx")).Checked == true)
        //            i = i + 1;
        //    }

        //    if (i == 0)
        //        ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscript", "alert('Please select record to delete!');", true);
        //    else
        //        CustomerTransactionDelete();
        //}

        {
            int    i         = 0;
            string StagingID = string.Empty;

            foreach (GridViewRow gvr in this.gvCAMSProfileReject.Rows)
            {
                if (((CheckBox)gvr.FindControl("chkBx")).Checked == true)
                {
                    i          = i + 1;
                    StagingID += Convert.ToString(gvCAMSProfileReject.DataKeys[gvr.RowIndex].Value) + "~";
                }
            }

            if (i == 0)
            {
                ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscript", "alert('Please select record to delete!');", true);
            }
            else
            {
                rejectedRecordsBo = new RejectedRecordsBo();
                rejectedRecordsBo.DeleteMFRejectedFolios(StagingID);
                ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscript", "loadcontrol('RejectedMFFolio','login');", true);
            }
        }