In ASP.NET MVC how can I use the Razor @Url.Content() helper from C# code?
Asked 2008-12-09T06:13:20.043
53
I'm trying to write a html helper extension that outputs an image tag.
I need to access (within C# code) something like Razor's @Url.Content() helper to get the proper URL for the current context.
How does one do this?