private string pageRoot = string.Empty;
        public virtual string PortalRoot
        {
            get
            {
                if (pageRoot == null || pageRoot == "")
                {
                    pageRoot = HttpContext.Current.Request.Url + string.Empty;
                    pageRoot = pageRoot.ToLower();
                    pageRoot = pageRoot.Substring(0, pageRoot.IndexOf("/portal"));
                }
                return pageRoot;
            }
        }

 

相关文章:

  • 2021-09-17
  • 2021-11-05
  • 2021-11-07
  • 2021-05-29
  • 2022-02-04
  • 2021-05-27
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-07
  • 2022-12-23
  • 2021-09-12
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案