Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Is there a shorter way of writing this in .cshtml?
@umbraco.IO.IOHelper.ResolveUrl("~/myPath")
I wonder why @Url.Content doesn't work?
@Url.Content doesn't work because that's an MVC thing, Umbraco isn't quite there yet.
You can use:
VirtualPathUtility.ToAbsolute("~/myPath");
I'm sure that that is what ResolveUrl is doing internally anyway.
cool, that's a little bit shorter, thanks!
@Href("~/myPath") should work now also
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
ResolveUrl
Is there a shorter way of writing this in .cshtml?
@umbraco.IO.IOHelper.ResolveUrl("~/myPath")
I wonder why @Url.Content doesn't work?
@Url.Content doesn't work because that's an MVC thing, Umbraco isn't quite there yet.
You can use:
I'm sure that that is what ResolveUrl is doing internally anyway.
cool, that's a little bit shorter, thanks!
@Href("~/myPath") should work now also
is working on a reply...