示例#1
0
    protected void Page_InIt(object sender, EventArgs e)
    {
        PersonifyControlBase objbase = new PersonifyControlBase();
        var    ctrl = new Personify.WebControls.Membership.UI.MembershipJoinRegistrationControl();
        string customTableClassName = "Sme.personifyPages";

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


        //if (!string.IsNullOrEmpty(CancelUrl)) { ctrl.CancelUrl = CancelUrl; }
        //if (!string.IsNullOrEmpty(CompanySearchEnable)) { ctrl.CompanySearchEnable = System.Boolean.Parse(CompanySearchEnable); }
        //if (!string.IsNullOrEmpty(CustomCssClass)) { ctrl.CustomCssClass = CustomCssClass; }
        //LoadDropdownList(ddlErrorMessage);
        //if (!string.IsNullOrEmpty(ErrorMessage)) { ctrl.ErrorMessage = ErrorMessage; }
        //LoadDropdownList(ddlImageDirectory);
        //if (!string.IsNullOrEmpty(ImageDirectory)) { ctrl.ImageDirectory = ImageDirectory; }
        //if (!string.IsNullOrEmpty(LinkCompanyEnable)) { ctrl.LinkCompanyEnable = System.Boolean.Parse(LinkCompanyEnable); }
        //if (!string.IsNullOrEmpty(ProductIdUrlParameter)) { ctrl.ProductIdUrlParameter = ProductIdUrlParameter; }
        //if (!string.IsNullOrEmpty(QueryStringParametersToPreserve)) { ctrl.QueryStringParametersToPreserve = QueryStringParametersToPreserve; }
        //if (!string.IsNullOrEmpty(RateCodeUrlParameter)) { ctrl.RateCodeUrlParameter = RateCodeUrlParameter; }
        //LoadDropdownList(ddlStep2Url);
        if (customTableRecord != null)
        {
            ctrl.Step2Url = customTableRecord.Tables[0].Rows[0]["ParameterValue"].ToString();
        }
        //LoadDropdownList(ddlUserExistUrl);
        //if (!string.IsNullOrEmpty(UserExistUrl)) { ctrl.UserExistUrl = UserExistUrl; }
        objbase.InitPersonifyWebControl(ctrl);
        phPersonifyControl.Controls.Add(ctrl);
    }
示例#2
0
    protected void Page_InIt(object sender, EventArgs e)
    {
        PersonifyControlBase objbase = new PersonifyControlBase();
        var ctl = new Personify.WebControls.Membership.UI.MembershipJoinRegistrationControl();

        objbase.InitPersonifyWebControl(ctl);
        //LoadDropdownList(ddlCancelUrl);
        //MTG_REG_CANCEL_URL
        //if (!string.IsNullOrEmpty(CancelUrl)) { ctl.CancelUrl = CancelUrl; }
        //if (!string.IsNullOrEmpty(CompanySearchEnable)) { ctl.CompanySearchEnable = System.Boolean.Parse(CompanySearchEnable); }
        //if (!string.IsNullOrEmpty(CustomCssClass)) { ctl.CustomCssClass = CustomCssClass; }
        //LoadDropdownList(ddlErrorMessage);
        //if (!string.IsNullOrEmpty(ErrorMessage)) { ctl.ErrorMessage = ErrorMessage; }
        //LoadDropdownList(ddlImageDirectory);
        //if (!string.IsNullOrEmpty(ImageDirectory)) { ctl.ImageDirectory = ImageDirectory; }
        //if (!string.IsNullOrEmpty(LinkCompanyEnable)) { ctl.LinkCompanyEnable = System.Boolean.Parse(LinkCompanyEnable); }
        //if (!string.IsNullOrEmpty(ProductIdUrlParameter)) { ctl.ProductIdUrlParameter = ProductIdUrlParameter; }
        //if (!string.IsNullOrEmpty(QueryStringParametersToPreserve)) { ctl.QueryStringParametersToPreserve = QueryStringParametersToPreserve; }
        //if (!string.IsNullOrEmpty(RateCodeUrlParameter)) { ctl.RateCodeUrlParameter = RateCodeUrlParameter; }
        //LoadDropdownList(ddlStep2Url);
        //if (!string.IsNullOrEmpty(Step2Url)) { ctl.Step2Url = Step2Url; }
        //LoadDropdownList(ddlUserExistUrl);
        //if (!string.IsNullOrEmpty(UserExistUrl)) { ctl.UserExistUrl = UserExistUrl; }
        phPersonifyControl.Controls.Add(ctl);
    }