public static string ApplicationRootPath = ((HttpContext.Current.Request.ApplicationPath == "/") ? "" : HttpContext.Current.Request.ApplicationPath);
public static string SiteRootPath = HttpContext.Current.Request.PhysicalApplicationPath.Substring(0, HttpContext.Current.Request.PhysicalApplicationPath.Length - 1);
private void GetParamValue(string paramStr, string paramName, ref string paramValue)
{
MatchCollection matchs = Regex.Matches(paramStr, @"{\$Ky.*?\b" + paramName + "=\"(.*?)\".*?/}", RegexOptions.IgnoreCase);
if (((matchs.Count > 0) && (matchs[0].Groups.Count > 1)) && (matchs[0].Groups[1].Value != ""))
{
paramValue = matchs[0].Groups[1].Value.ToLower();
}
}
问题:
1.((HttpContext.Current.Request.ApplicationPath == "/") ? "" : HttpContext.Current.Request.ApplicationPath);
是什么意思 作用是什么
2.HttpContext.Current.Request.PhysicalApplicationPath.Substring(0, HttpContext.Current.Request.PhysicalApplicationPath.Length - 1);
是什么意思作用是什么
3.matchs[0].Groups[1].Value.ToLower();是什么意思
|