开发者

How to determine the relative path to a file from within an asp.net mvc3 area

I want to know what's the best way using the Razor syntax to determine the relative pat开发者_StackOverflow中文版h to the ClientBin folder from within an Area's View.

Thank you, Stephen


The problem was solved by luck, I had been using the first multi-line expression, then by chance went back to the second one.. Has nothing to do with the mapping of the file, or where it's running from

<div>
    @{
        com.patten.root.Helpers.Silverlight.SilverlightHost("/ClientBin/jounce.xap");  
    }
</div>

<div>
    @com.patten.root.Helpers.Silverlight.SilverlightHost("/ClientBin/jounce.xap");
</div>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜