string filePath = Server.MapPath(Url.Content("~/Content/Xsl/"));
I disagree with the idea that HttpContext.Current
is "evil." It's not the hammer for every problem, but it is certainly better than, e.g., Session for stuff that it can do OK.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…