protected void btnSave_Click(object sender, EventArgs e)
    {
        List <ATTPropertyCategory> lstPCC = new List <ATTPropertyCategory>();

        if (Session["LstPropCat"] != null)
        {
            lstPCC = (List <ATTPropertyCategory>)Session["LstPropCat"];

            if (BLLPropertyCategory.SavePropertyCategory(lstPCC))
            {
                this.grdPropCat.DataSource = null;
                this.grdPropCat.DataBind();

                this.btnSave.Visible = false;

                Session["LstPropCat"] = null;
            }
        }
    }
Exemple #2
0
    protected void btnSave_Click(object sender, EventArgs e)
    {
        List <ATTPropertyCategory> lstPCC = new List <ATTPropertyCategory>();

        if (Session["LstPropCat"] != null)
        {
            lstPCC = (List <ATTPropertyCategory>)Session["LstPropCat"];

            if (BLLPropertyCategory.SavePropertyCategory(lstPCC))
            {
                this.lblStatusMessage.Text = "property Category Saved Successfully.";
                this.programmaticModalPopup.Show();
                this.grdPropCat.DataSource = null;
                this.grdPropCat.DataBind();

                this.btnSave.Visible = false;

                Session["LstPropCat"] = null;
            }
        }
    }