开发者

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

开发者 https://www.devze.com 2023-02-06 16:30 出处:网络
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.

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

精彩评论

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

关注公众号