public string GetRelativeLevel()
{
string[] strArray = HttpContext.Current.Request.Path.Split(new char[]{'/'});
StringBuilder builder = new StringBuilder(30);
for(int i=0;i<strArray.Length-3;i++)
{
builder.Append("../");
}
return builder.ToString();
}
转载于:https://www.cnblogs.com/RobotTech/archive/2007/01/13/619731.html