public static string UrlScheme
    {
        get
        {
            return System.Web.HttpContext.Current.Request.Url.Scheme + "://";
        }
    }
    public static string AppUrl
    {
        get
        {
            if (!String.IsNullOrEmpty(_AppUrl))
            {
                return _AppUrl;
            }
            else
            {
                string Url = UrlScheme + System.Web.HttpContext.Current.Request.Url.Authority + System.Web.HttpContext.Current.Request.ApplicationPath;
                Url = Url.TrimEnd('/');
                return Url;
            }
        }
    }
    private static string _AppUrl;

相关文章:

  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
  • 2021-04-02
  • 2021-07-07
  • 2021-09-23
  • 2021-11-18
  • 2022-12-23
猜你喜欢
  • 2021-11-18
  • 2021-09-21
  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案