protected void BtnSave_Click(object sender, EventArgs e)
    {
        int InsertRow = 0;

        try
        {
            DS = Obj_PR.ChkDuplicate(TxtPropertySubType.Text.Trim(), out StrError);
            if (DS.Tables[0].Rows.Count > 0)
            {
                obj_Comm.ShowPopUpMsg("PropertySubType Name Already Exist..!", this.Page);
                TxtPropertySubType.Focus();
            }
            else
            {
                Entity_PR.PropertySubTypeDesc = TxtPropertySubType.Text.Trim();

                if (Convert.ToInt32(ddlPropertyType.SelectedValue) > 0)
                {
                    Entity_PR.PropertyTypeId = Convert.ToInt32(ddlPropertyType.SelectedValue);
                }
                else
                {
                    obj_Comm.ShowPopUpMsg("Select PropertyType First..!", this.Page);
                    ddlPropertyType.Focus();
                    return;
                }
                Entity_PR.LoginId   = Convert.ToInt32(Session["UserId"]);
                Entity_PR.LoginDate = DateTime.Now;
                InsertRow           = Obj_PR.InsertRecord(ref Entity_PR, out StrError);

                if (InsertRow != 0)
                {
                    obj_Comm.ShowPopUpMsg("Record Saved Successfully", this.Page);
                    MakeEmptyForm();
                    Entity_PR = null;
                    obj_Comm  = null;
                }
            }
        }
        catch (Exception ex)
        {
            throw new Exception(ex.Message);
        }
    }