当前位置: 首页>>代码示例>>C#>>正文


C# SageFrameConfig.GetSettingBollByKey方法代码示例

本文整理汇总了C#中SageFrame.Web.SageFrameConfig.GetSettingBollByKey方法的典型用法代码示例。如果您正苦于以下问题:C# SageFrameConfig.GetSettingBollByKey方法的具体用法?C# SageFrameConfig.GetSettingBollByKey怎么用?C# SageFrameConfig.GetSettingBollByKey使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SageFrame.Web.SageFrameConfig的用法示例。


在下文中一共展示了SageFrameConfig.GetSettingBollByKey方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Application_Start

        protected void Application_Start(object sender, EventArgs e)
        {
            try
            {
                ApplicationController objAppController = new ApplicationController();
                if (objAppController.IsInstalled())
                {
                    SageFrameConfig pagebase = new SageFrameConfig();
                    RolesManagementController objController = new RolesManagementController();
                    RolesManagementInfo res = objController.GetRoleIDByRoleName(SystemSetting.AnonymousUsername);
                    if (res != null)
                    {
                        SystemSetting.ANONYMOUS_ROLEID = res.RoleId.ToString();
                    }
                    bool IsUseFriendlyUrls = pagebase.GetSettingBollByKey(SageFrameSettingKeys.UseFriendlyUrls);
                    SageFrameSettingKeys.PageExtension = pagebase.GetSettingsByKey(SageFrameSettingKeys.SettingPageExtension);
                    bool isSchedulerOn = pagebase.GetSettingBollByKey(SageFrameSettingKeys.Scheduler);
                    if (IsUseFriendlyUrls)
                    {
                        RegisterRoutes(RouteTable.Routes);
                    }
                    if (isSchedulerOn)
                    {
                        RunSchedule();
                    }
                }
            }
            catch
            {
            }

        }
开发者ID:RexSystemsbd,项目名称:SageFrameV2.1Source,代码行数:32,代码来源:Global.asax.cs

示例2: SageInitPart

 private void SageInitPart()
 {
     SetPortalCofig();
     InitializePage();
     LoadModuleControls();
     SageFrameConfig sfConfig = new SageFrameConfig();
     IsUseFriendlyUrls = sfConfig.GetSettingBollByKey(SageFrameSettingKeys.UseFriendlyUrls);
     //LoadControl(phdAdministrativBreadCrumb, "~/Controls/ctl_AdminBreadCrum.ascx");
     LoadControl(phdAdminMenu, "~/Controls/ctl_AdminMenuOnly.ascx");
     if (sfConfig.GetSettingsByKey(SageFrameSettingKeys.PortalShowFooter) == "1")
     {
         divFooterWrapper.Attributes.Add("style", "display:block;");
     }
     else
     {
         divFooterWrapper.Attributes.Add("style", "display:none;");
     }
     BindModuleControls();
     HiddenField hdnPageID = new HiddenField();
     hdnPageID.ID = "hdnPageID";
     if (HttpContext.Current.Request.QueryString["pgid"] != null)
     {
         hdnPageID.Value = HttpContext.Current.Request.QueryString["pgid"].ToString();
     }
     HiddenField hdnActiveIndex = new HiddenField();
     hdnActiveIndex.ID = "hdnActiveIndex";
     if (HttpContext.Current.Request.QueryString["ActInd"] != null)
     {
         hdnActiveIndex.Value = HttpContext.Current.Request.QueryString["ActInd"].ToString();
     }
     this.Page.Form.Controls.Add(hdnPageID);
     this.Page.Form.Controls.Add(hdnActiveIndex);
     OverridePageInfo(null);
 }
开发者ID:electrono,项目名称:veg-web,代码行数:34,代码来源:ManagePage.aspx.cs

示例3: Page_Load

      protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            SageFrameConfig pagebase = new SageFrameConfig();
            IsUseFriendlyUrls = pagebase.GetSettingBollByKey(SageFrameSettingKeys.UseFriendlyUrls);
            string modulePath = ResolveUrl(this.AppRelativeTemplateSourceDirectory);
            AspxAdminNotificationModulePath = ResolveUrl(modulePath);

            if (!IsPostBack)
            {

                IncludeJs("AspxAdminNotificationView",
                      "/Modules/AspxCommerce/AspxAdminNotification/js/AspxAdminNotificationView.js"
                      );

                IncludeCss("AspxAdminNotificationView",
                     "/Modules/AspxCommerce/AspxAdminNotification/css/AdminNotification.css",
                     "/Modules/AspxCommerce/AspxAdminNotification/css/style.css"
                    );
              
            }

            IncludeLanguageJS();
        }
        catch (Exception ex)
        {
            ProcessException(ex);
        }

    }
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:31,代码来源:AspxAdminNotificationView.ascx.cs

示例4: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            SageFrameConfig pagebase = new SageFrameConfig();
            IsUseFriendlyUrls = pagebase.GetSettingBollByKey(SageFrameSettingKeys.UseFriendlyUrls);
            if (!IsPostBack)
            {
                IncludeCss("ShoppingBagHeader", "/Templates/" + TemplateName + "/css/PopUp/style.css", "/Templates/" + TemplateName + "/css/MessageBox/style.css");
                IncludeJs("ShoppingBagHeader", "/js/PopUp/custom.js", "/js/MessageBox/jquery.easing.1.3.js", "/js/MessageBox/alertbox.js", "/js/Session.js",
                    "Modules/AspxCommerce/AspxShoppingBagHeader/js/ShoppingBag.js");
                StoreID = GetStoreID;
                PortalID = GetPortalID;
                CustomerID = GetCustomerID;
                UserName = GetUsername;
                CultureName = GetCurrentCultureName;

                if (HttpContext.Current.Session.SessionID != null)
                {
                    SessionCode = HttpContext.Current.Session.SessionID.ToString();
                }

                StoreSettingConfig ssc = new StoreSettingConfig();
                ShowMiniShopCart = ssc.GetStoreSettingsByKey(StoreSetting.ShowMiniShoppingCart, StoreID, PortalID, CultureName);
                AllowMultipleAddChkOut = ssc.GetStoreSettingsByKey(StoreSetting.AllowMultipleShippingAddress, StoreID, PortalID, CultureName);
                MinOrderAmount = ssc.GetStoreSettingsByKey(StoreSetting.MinimumOrderAmount, StoreID, PortalID, CultureName);
                AllowAnonymousCheckOut = ssc.GetStoreSettingsByKey(StoreSetting.AllowAnonymousCheckOut, StoreID, PortalID, CultureName);
                ShoppingCartURL = ssc.GetStoreSettingsByKey(StoreSetting.ShoppingCartURL, StoreID, PortalID, CultureName);
            }
        }
        catch (Exception ex)
        {
            ProcessException(ex);
        }
    }
开发者ID:Dashboard-X,项目名称:Aspxcommerce,代码行数:35,代码来源:ShoppingBagHeader.ascx.cs

示例5: Application_Start

 protected void Application_Start(object sender, EventArgs e)
 {
     try
     {
         string IsInstalled = Config.GetSetting("IsInstalled").ToString();
         string InstallationDate = Config.GetSetting("InstallationDate").ToString();
         if ((IsInstalled != "" && IsInstalled != "false") && InstallationDate != "")
         {
             SageFrameConfig pagebase = new SageFrameConfig();
             RolesManagementDataContext db = new RolesManagementDataContext(SystemSetting.SageFrameConnectionString);
             sp_GetRoleIDByRoleNameResult res = (sp_GetRoleIDByRoleNameResult)db.sp_GetRoleIDByRoleName(SystemSetting.AnonymousUsername).SingleOrDefault();
             if (res != null)
             {
                 SystemSetting.ANONYMOUS_ROLEID = res.RoleId.ToString();
             }
             bool IsUseFriendlyUrls = pagebase.GetSettingBollByKey(SageFrameSettingKeys.UseFriendlyUrls);
             if (IsUseFriendlyUrls)
             {
                 RegisterRoutes(RouteTable.Routes);
             }
         }
     }
     catch
     {
     }
     
 }
开发者ID:Dashboard-X,项目名称:Aspxcommerce,代码行数:27,代码来源:Global.asax.cs

示例6: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (!IsPostBack)
            {
                var sfConfig = new SageFrameConfig();
                _isUseFriendlyUrls = sfConfig.GetSettingBollByKey(SageFrameSettingKeys.UseFriendlyUrls);

                if (_isUseFriendlyUrls)
                {
                    if (!IsParent)
                    {
                        AddressPath = HttpContext.Current.Request.ServerVariables["SERVER_NAME"] + "/portal/" + GetPortalSEOName + "/";

                    }
                    else
                    {
                        AddressPath = HttpContext.Current.Request.ServerVariables["SERVER_NAME"] + "/";
                    }
                }
                StoreSettingConfig ssc = new StoreSettingConfig();               
                MainCurrency = ssc.GetStoreSettingsByKey(StoreSetting.MainCurrency, GetPortalID, GetPortalID, GetCurrentCultureName);  

            }
            IncludeLanguageJS();
        }
        catch
        {
        }    
    }
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:31,代码来源:AIM_AuthorizeDotNET.ascx.cs

示例7: Page_Load

 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         SageFrameConfig sfConfig = new SageFrameConfig();
         IsUseFriendlyUrls = sfConfig.GetSettingBollByKey(SageFrameSettingKeys.UseFriendlyUrls);
         if (HttpContext.Current.User != null)
         {
             if (Membership.GetUser() != null)
             {
                 lnkloginStatus.Text = SageLogOutText;
                 lnkloginStatus.CommandName = "LOGOUT";
             }
             else
             {
                 lnkloginStatus.Text = SageLogInText;
                 lnkloginStatus.CommandName = "LOGIN";
             }
         }
         else
         {
             lnkloginStatus.Text = SageLogInText;
             lnkloginStatus.CommandName = "LOGIN";
         }
     }
     catch
     {
     }
 }
开发者ID:Dashboard-X,项目名称:Aspxcommerce,代码行数:29,代码来源:LoginStatus.ascx.cs

示例8: CheckAccess

    public void CheckAccess()
    {
        string preFix = string.Empty;
        string paneName = string.Empty;
        string ControlSrc = string.Empty;
        string phdContainer = string.Empty;
        string PageSEOName = string.Empty;
        string redirecPath = string.Empty;
        SageFrameConfig sfConfig = new SageFrameConfig();
        IsUseFriendlyUrls = sfConfig.GetSettingBollByKey(SageFrameSettingKeys.UseFriendlyUrls);
        StoreAccessDetailsInfo storeAccessTracker = new StoreAccessDetailsInfo();
        storeAccessTracker.PortalID = GetPortalID.ToString();
        storeAccessTracker.StoreID = GetStoreID.ToString();
        storeAccessTracker.Username = GetUsername;
        if (Membership.GetUser() != null)
        {
            MembershipUser userDetail = Membership.GetUser(GetUsername);
            storeAccessTracker.UserEmail = userDetail.Email;
        }
        else
        {
            storeAccessTracker.UserEmail = "";
        }
        StoreAccessResultInfo saResults = (StoreAccessResultInfo)GetStoreAccessByCurrentData(storeAccessTracker);
        bool storeClosed = (bool)saResults.StoreClosed;
        bool storeAccessible = (bool)saResults.IsAccess;

        if (storeAccessible)
        {
            DataSet dsPageSettings = new DataSet();

            dsPageSettings = sfConfig.GetPageSettingsByPageSEOName("1", "Home", GetUsername);
            if (bool.Parse(dsPageSettings.Tables[0].Rows[0][0].ToString()) == true)
            {
                //if (bool.Parse(dsPageSettings.Tables[0].Rows[0][2].ToString()) != true)
                //{
                if (bool.Parse(dsPageSettings.Tables[0].Rows[0][1].ToString()) == true)
                {
                    //from session previous url will retrive and redirect to id
                    string returnURL = HttpContext.Current.Session["StoreClosed"].ToString();
                    HttpContext.Current.Session.Remove("StoreClosed");
                    Response.Redirect(returnURL);
                }
                else
                {

                }

            }
            else
            {
                //portal no found
            }
        }
        else
        {
        }


    }
开发者ID:electrono,项目名称:veg-web,代码行数:60,代码来源:Store-Closed.aspx.cs

示例9: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            SageFrameConfig pagebase = new SageFrameConfig();
            IsUseFriendlyUrls = pagebase.GetSettingBollByKey(SageFrameSettingKeys.UseFriendlyUrls);
            storeID = GetStoreID;
            portalID = GetPortalID;
            userName = GetUsername;
            customerID = GetCustomerID;
            cultureName = GetCurrentCultureName;
            if (HttpContext.Current.Session.SessionID != null)
            {
                sessionCode = HttpContext.Current.Session.SessionID.ToString();
            }

            userIP = HttpContext.Current.Request.UserHostAddress;
            IPAddressToCountryResolver ipToCountry = new IPAddressToCountryResolver();
            ipToCountry.GetCountry(userIP, out countryName);
            noImageWishList = StoreSetting.GetStoreSettingValueByKey(StoreSetting.DefaultProductImageURL, storeID, portalID, cultureName);
            enableWishList = StoreSetting.GetStoreSettingValueByKey(StoreSetting.EnableWishList, storeID, portalID, cultureName);
            showImageInWishlist = StoreSetting.GetStoreSettingValueByKey(StoreSetting.ShowItemImagesInWishList, storeID, portalID, cultureName);
            allowOutStockPurchase = StoreSetting.GetStoreSettingValueByKey(StoreSetting.AllowOutStockPurchase, storeID, portalID, cultureName);
        }
        catch (Exception ex)
        {
            ProcessException(ex);
        }
    }
开发者ID:electrono,项目名称:veg-web,代码行数:29,代码来源:WishItemList.ascx.cs

示例10: Page_Load

 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         SageFrameConfig pagebase = new SageFrameConfig();
         IsUseFriendlyUrls = pagebase.GetSettingBollByKey(SageFrameSettingKeys.UseFriendlyUrls);
         if (!IsPostBack)
         {
             storeID = GetStoreID;
             portalID = GetPortalID;
             userName = GetUsername;
             customerID = GetCustomerID;
             cultureName = GetCurrentCultureName;
             if (HttpContext.Current.Session.SessionID != null)
             {
                 sessionCode = HttpContext.Current.Session.SessionID.ToString();
             }
             noImageMyCartPath = StoreSetting.GetStoreSettingValueByKey(StoreSetting.DefaultProductImageURL, storeID, portalID, cultureName);
             allowMultipleAddShipping = StoreSetting.GetStoreSettingValueByKey(StoreSetting.AllowMultipleShippingAddress, storeID, portalID, cultureName);
             showItemImagesOnCart = StoreSetting.GetStoreSettingValueByKey(StoreSetting.ShowItemImagesInCart, storeID, portalID, cultureName);
             minOrderAmount = StoreSetting.GetStoreSettingValueByKey(StoreSetting.MinimumOrderAmount, storeID, portalID, cultureName);
             minimumItemQuantity = Convert.ToInt32(StoreSetting.GetStoreSettingValueByKey(StoreSetting.MinimumItemQuantity, storeID, portalID, cultureName));
             maximumItemQuantity = Convert.ToInt32(StoreSetting.GetStoreSettingValueByKey(StoreSetting.MaximumItemQuantity, storeID, portalID, cultureName));
             allowOutStockPurchase = StoreSetting.GetStoreSettingValueByKey(StoreSetting.AllowOutStockPurchase, storeID, portalID, cultureName);
         }
     }
     catch (Exception ex)
     {
         ProcessException(ex);
     }
 }
开发者ID:electrono,项目名称:veg-web,代码行数:31,代码来源:mycart.ascx.cs

示例11: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            SageFrameConfig pagebase = new SageFrameConfig();
            IsUseFriendlyUrls = pagebase.GetSettingBollByKey(SageFrameSettingKeys.UseFriendlyUrls);
            if (!IsPostBack)
            {
                storeID = GetStoreID;
                portalID = GetPortalID;
                customerID = GetCustomerID;
                userName = GetUsername;
                cultureName = GetCurrentCultureName;

                if (HttpContext.Current.Session.SessionID != null)
                {
                    sessionCode = HttpContext.Current.Session.SessionID.ToString();
                }
                myAccountURL = StoreSetting.GetStoreSettingValueByKey(StoreSetting.MyAccountURL, storeID, portalID, cultureName);
                shoppingCartURL = StoreSetting.GetStoreSettingValueByKey(StoreSetting.ShoppingCartURL, storeID, portalID, cultureName);
                wishListURL = StoreSetting.GetStoreSettingValueByKey(StoreSetting.WishListURL, storeID, portalID, cultureName);
                allowAnonymousCheckOut = StoreSetting.GetStoreSettingValueByKey(StoreSetting.AllowAnonymousCheckOut, storeID, portalID, cultureName);
                allowMultipleShipping = StoreSetting.GetStoreSettingValueByKey(StoreSetting.AllowMultipleShippingAddress, storeID, portalID, cultureName);
                minOrderAmount = StoreSetting.GetStoreSettingValueByKey(StoreSetting.MinimumOrderAmount, storeID, portalID, cultureName);
                allowWishList = StoreSetting.GetStoreSettingValueByKey(StoreSetting.EnableWishList,storeID,portalID,cultureName);
            }
        }
        catch (Exception ex)
        {
            ProcessException(ex);
        }
    }
开发者ID:electrono,项目名称:veg-web,代码行数:32,代码来源:ASPXHeaderControl.ascx.cs

示例12: StartProccess

    private void StartProccess()
    {
        try
        {

            var sfConfig = new SageFrameConfig();
           bool _isUseFriendlyUrls = sfConfig.GetSettingBollByKey(SageFrameSettingKeys.UseFriendlyUrls);
            string sageRedirectPath;
            if (_isUseFriendlyUrls)
            {
                if (!IsParent)
                {
                    sageRedirectPath = ResolveUrl(GetParentURL + "/portal/" + GetPortalSEOName + "/" + "Cash-On-Delivery-Success.aspx");
                }
                else
                {
                    sageRedirectPath = ResolveUrl("~/" + "Cash-On-Delivery-Success.aspx");
                 }
            }
            else
            {
                sageRedirectPath = ResolveUrl("{~/Default.aspx?ptlid=" + GetPortalID + "&ptSEO=" + GetPortalSEOName + "&pgnm=" + "Cash-On-Delivery-Success");
            }

                                 Response.Redirect(sageRedirectPath);



        }
        catch (Exception ex)
        {
            ProcessException(ex);
        }
    }
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:34,代码来源:MobileProcesser.ascx.cs

示例13: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (!IsPostBack)
            {
                IncludeCss("messagecss", "/Templates/" + TemplateName + "/css/MessageBox/style.css",
                    "/Modules/AspxCommerce/AspxServiceItems/css/ServiceItems.css");
                IncludeJs("messagejs", "/js/MessageBox/alertbox.js");
                var sfConfig = new SageFrameConfig();
                _isUseFriendlyUrls = sfConfig.GetSettingBollByKey(SageFrameSettingKeys.UseFriendlyUrls);

                if (_isUseFriendlyUrls)
                {
                    if (GetPortalID > 1)
                    {
                        _sageRedirectPath =
                            ResolveUrl("~/portal/" + GetPortalSEOName + "/" +sfConfig.GetSettingsByKey(SageFrameSettingKeys.PortalDefaultPage) + SageFrameSettingKeys.PageExtension);
                        _addressPath = HttpContext.Current.Request.ServerVariables["SERVER_NAME"] + "/portal/" +GetPortalSEOName + "/";

                    }
                    else
                    {
                        _sageRedirectPath =
                            ResolveUrl("~/" + sfConfig.GetSettingsByKey(SageFrameSettingKeys.PortalDefaultPage) +
                                       SageFrameSettingKeys.PageExtension);
                        _addressPath = HttpContext.Current.Request.ServerVariables["SERVER_NAME"] + "/";

                    }
                }
                else
                {
                    _sageRedirectPath =
                        ResolveUrl("{~/Default" + SageFrameSettingKeys.PageExtension + "?ptlid=" + GetPortalID +
                                   "&ptSEO=" + GetPortalSEOName + "&pgnm=" +
                                   sfConfig.GetSettingsByKey(SageFrameSettingKeys.PortalDefaultPage));
                }

                var imgProgress = (Image) UpdateProgress1.FindControl("imgPrgress");
                if (imgProgress != null)
                {
                    imgProgress.ImageUrl = GetTemplateImageUrl("ajax-loader.gif", true);
                }
                hlnkHomePage.NavigateUrl = _sageRedirectPath;

                StoreSettingConfig ssc = new StoreSettingConfig();
                                            
                StoreLogoUrl = ssc.GetStoreSettingsByKey(StoreSetting.StoreLogoURL, GetStoreID, GetPortalID, GetCurrentCultureName);
                SendConfrimMessage();
            }
            IncludeLanguageJS();
        }
        catch(Exception ex)
        {
            throw ex;
        }
    }
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:57,代码来源:AppointmentSuccess.ascx.cs

示例14: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            try
            {
                if (Session["OrderID"] != null)
                {
                    orderID = int.Parse(Session["OrderID"].ToString());
                }

                var sfConfig = new SageFrameConfig();
                _isUseFriendlyUrls = sfConfig.GetSettingBollByKey(SageFrameSettingKeys.UseFriendlyUrls);
                PageExtension = SageFrameSettingKeys.PageExtension;
                string sageRedirectPath;
                if (_isUseFriendlyUrls)
                {
                    if (!IsParent)
                    {
                        sageRedirectPath = ResolveUrl(GetParentURL + "/portal/" + GetPortalSEOName + "/" + sfConfig.GetSettingsByKey(SageFrameSettingKeys.PortalDefaultPage) + PageExtension);
                        _addressPath = HttpContext.Current.Request.ServerVariables["SERVER_NAME"] + "/portal/" + GetPortalSEOName + "/";
                    }
                    else
                    {
                        sageRedirectPath = ResolveUrl("~/" + sfConfig.GetSettingsByKey(SageFrameSettingKeys.PortalDefaultPage) + PageExtension);
                        _addressPath = HttpContext.Current.Request.ServerVariables["SERVER_NAME"] + "/";
                    }
                }
                else
                {
                    sageRedirectPath = ResolveUrl("{~/Default" + PageExtension + "?ptlid=" + GetPortalID + "&ptSEO=" + GetPortalSEOName + "&pgnm=" + sfConfig.GetSettingsByKey(SageFrameSettingKeys.PortalDefaultPage));
                }

                var imgProgress = (Image)UpdateProgress1.FindControl("imgPrgress");
                if (imgProgress != null)
                {
                    imgProgress.ImageUrl = GetTemplateImageUrl("ajax-loader.gif", true);
                }
                hlnkHomePage.NavigateUrl = sageRedirectPath;

                 
                IncludeLanguageJS();
                if (Session["mb_IsCheckoutFromMobile"] != null)
                {
                    MobileSuccess(sageRedirectPath);
                }else
                {
                    WebSuccess(sageRedirectPath);
                }
            }
            catch (Exception ex)
            {

                ProcessException(ex);
            }
        }
    }
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:57,代码来源:PaypalSuccess.ascx.cs

示例15: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            AspxCommonInfo aspxCommonObj = new AspxCommonInfo();
            aspxCommonObj.StoreID = GetStoreID;
            aspxCommonObj.PortalID = GetPortalID;
            aspxCommonObj.UserName = GetUsername;
            aspxCommonObj.CultureName = GetCurrentCultureName;


            if (!IsPostBack)
            {
                if (Session["OrderID"] != null)
                {
                    orderID = int.Parse(Session["OrderID"].ToString());
                }
                var sfConfig = new SageFrameConfig();
                _isUseFriendlyUrls = sfConfig.GetSettingBollByKey(SageFrameSettingKeys.UseFriendlyUrls);

                if (_isUseFriendlyUrls)
                {
                    if (!IsParent)
                    {
                        _sageRedirectPath = ResolveUrl("~/portal/" + GetPortalSEOName + "/" + sfConfig.GetSettingsByKey(SageFrameSettingKeys.PortalDefaultPage) + ".aspx");
                    }
                    else
                    {
                        _sageRedirectPath = ResolveUrl("~/" + sfConfig.GetSettingsByKey(SageFrameSettingKeys.PortalDefaultPage) + ".aspx");
                    }
                }
                else
                {
                    _sageRedirectPath = ResolveUrl("{~/Default.aspx?ptlid=" + GetPortalID + "&ptSEO=" + GetPortalSEOName + "&pgnm=" + sfConfig.GetSettingsByKey(SageFrameSettingKeys.PortalDefaultPage));
                }

                var imgProgress = (Image)UpdateProgress1.FindControl("imgPrgress");
                if (imgProgress != null)
                {
                    imgProgress.ImageUrl = GetTemplateImageUrl("ajax-loader.gif", true);
                }
                hlnkHomePage.NavigateUrl = _sageRedirectPath;

                SendEmailFrom = StoreSetting.GetStoreSettingValueByKey(StoreSetting.SendEcommerceEmailsFrom, GetStoreID, GetPortalID, GetCurrentCultureName);
                SendOrderNotice = StoreSetting.GetStoreSettingValueByKey(StoreSetting.SendOrderNotification, GetStoreID, GetPortalID, GetCurrentCultureName);
                SendConfrimMessage();
            }
            IncludeLanguageJS();
        }
        catch (Exception ex)
        {
            ProcessException(ex);
        }
    }
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:54,代码来源:AuthorizeDotNetAIMSuccess.ascx.cs


注:本文中的SageFrame.Web.SageFrameConfig.GetSettingBollByKey方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。