62,046
社区成员
发帖
与我相关
我的任务
分享
private string getCurrentPath = HttpContext.Current.Request.FilePath;
public string CurrentPathPrefixion
{
get
{
int i = getCurrentPath.Length - getCurrentPath.Replace("/", String.Empty).Length - 2;
string s = string.Empty;
if (i > 0)
{
for (int j = 0; j < i; j++)
{
s += "../../"; //注意这里!!!
}
}
return s;
}
}