private void SaveData(string IsDelete)
    {
        //if (hfIsUpdate.Value == "N")
        //    hfID.Value = objDB.GerMaxIDNumber("TrainingService", "TraServiceID").ToString();
        //else
        //    hfID.Value = Convert.ToInt32(hfID.Value).ToString();
        try
        {
            string         maxTrnid      = "";
            clsCommonSetup objTrainSetup = new clsCommonSetup();
            if (this.txtTrainingName.Text.Trim() != "")
            {
                maxTrnid = Common.getMaxId("TrainingList", "TrainingId");

                objTrainSetup = new clsCommonSetup(maxTrnid, this.txtTrainingName.Text.Trim(), "Y", "N",
                                                   Session["USERID"].ToString(), Common.SetDateTime(DateTime.Now.ToString()), "N", IsDelete);
                //objTrmMgr.InsertTraining(objTrainSetup, "N", IsDelete);
            }
            string         MaxResourceId    = "";
            clsCommonSetup objResourceSetup = new clsCommonSetup();
            if (this.txtResourcePerson.Text.Trim() != "")
            {
                MaxResourceId = Common.getMaxId("ResourcePersonList", "ResourcePersonId");

                objResourceSetup = new clsCommonSetup(MaxResourceId, this.txtResourcePerson.Text.Trim(), "Y", "N",
                                                      Session["USERID"].ToString(), Common.SetDateTime(DateTime.Now.ToString()), "N", IsDelete);
                //objTrmMgr.InsertResourcePerson(objResourceSetup, "N", IsDelete);
            }
            objTrmMgr.InsertTrainingService(this.BindObject(maxTrnid, MaxResourceId), objTrainSetup, objResourceSetup, Session["USERID"].ToString(), hfIsUpdate.Value, IsDelete);
            lblMsg.Text = Common.GetMessage(hfIsUpdate.Value.ToString(), IsDelete);
            //Common.EmptyTextBoxValues(this);

            //this.EntryMode(false);
            if (ddlTraining.SelectedIndex == 0)
            {
                Common.FillDropDownList_Nil(objMasMgr.SelectTrainingName(0, "Y"), ddlTraining);
                txtTrainingName.Text = "";
            }
            if (ddlResourcePersonId.SelectedIndex == 0)
            {
                Common.FillDropDownList_Nil(objMasMgr.SelectResourcePersonList(0, "Y"), ddlResourcePersonId);
                txtResourcePerson.Text = "";
            }
        }
        catch (Exception ex)
        {
            lblMsg.Text = "";
            throw (ex);
        }
    }