internal static String ResolveClientUrlSimple(string relativeUrl)
  {

   if (relativeUrl == null)
   {
    throw new ArgumentNullException("relativeUrl");
   }
   if (relativeUrl.Length == 0) return relativeUrl;
   if (relativeUrl.StartsWith("~"))
   {
    string text1 = HttpContext.Current.Request.ApplicationPath;
                if (text1.Length == 0)
    {
     return relativeUrl;
                }
                text1 = text1 + relativeUrl.TrimStart('~');
                if (text1.IndexOf("//") > -1)
                    text1 = text1.Replace("//", "/");
    return text1;
   }
   return relativeUrl;
  }

相关文章:

  • 2021-12-07
  • 2022-02-20
  • 2021-05-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-03
  • 2022-01-11
猜你喜欢
  • 2022-12-23
  • 2021-09-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-19
相关资源
相似解决方案