Is there any easy (built in) way in an asp.net mvc view to get the absolute path of a file in the content folder?
At the moment I'm using
@Url.Content("~/Content/images/logo.png")
But the path returned isn't absolute.
I know it is possible to build its own helper for such cases but I'd like to know if there's any easier way...
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…