Beispiel #1
0
        protected void BtnSave_Click(object sender, EventArgs e)
        {
            int lintcnt = 0;
            EntityOccupation entOccupation = new EntityOccupation();

            if (string.IsNullOrEmpty(txtOccupationDesc.Text.Trim()))
            {
                Commons.ShowMessage("Enter Occupation Description", this.Page);
            }
            else
            {
                entOccupation.OccupationDesc = txtOccupationDesc.Text.Trim();
                entOccupation.EntryBy        = SessionWrapper.UserName;
                lintcnt = mobjOccupationBLL.InsertOccupation(entOccupation);

                if (lintcnt > 0)
                {
                    GetOccupation();
                    Commons.ShowMessage("Record Inserted Successfully", this.Page);
                    //this.programmaticModalPopup.Hide();
                }
                else
                {
                    Commons.ShowMessage("Record Not Inserted", this.Page);
                }
            }
        }