Example #1
0
    protected void Page_InIt(object sender, EventArgs e)
    {
        //ErrorMessage  CSSClass ProductIdUrlParameter
        PersonifyControlBase objbase = new PersonifyControlBase();
        var    ctrl = new Personify.WebControls.Membership.UI.MembershipListingControl();
        string customTableClassName = "Sme.personifyPages";

        string where = "Parametername ='ProductDetails'";
        DataSet customTableRecord = CustomTableItemProvider.GetItems(customTableClassName, where);

        if (customTableRecord != null)
        {
            ctrl.Step1RegistrationUrl = customTableRecord.Tables[0].Rows[0]["ParameterValue"].ToString();
        }
        ctrl.ProductIdUrlParameter = "productid";



        //LoadDropdownList(ddlErrorMessage);
        //if (!string.IsNullOrEmpty(ErrorMessage)) { ctrl.ErrorMessage = ErrorMessage; }
        //if (!string.IsNullOrEmpty(ProductIdUrlParameter)) { ctrl.ProductIdUrlParameter = "productId"; }
        //if (!string.IsNullOrEmpty(RateCodeUrlParameter)) { ctrl.RateCodeUrlParameter = RateCodeUrlParameter; }
        //LoadDropdownList(ddlStep1RegistrationUrl);
        //if (!string.IsNullOrEmpty(Step1RegistrationUrl)) { ctrl.Step1RegistrationUrl = Step1RegistrationUrl; }

        objbase.InitPersonifyWebControl(ctrl);
        phPersonifyControl.Controls.Add(ctrl);
    }
        /// <summary>
        /// Prepares the layout of the web part.
        /// </summary>
        protected override void PrepareLayout()
        {
            StartLayout();
            PersonifyControlBase objbase = new PersonifyControlBase();


            var ctl = new Personify.WebControls.Membership.UI.MembershipListingControl();

            objbase.InitPersonifyWebControl(ctl);
            phMembershipListingControl.Controls.Add(ctl);


            FinishLayout();
        }