I know this has to be a duplicate, but I\'ve been wading through the hordes of information on this and I can\'t get it work.
I\'m trying to get a site working on a clien
You should use the routing to resolve your URLs.
Personally I like to follow the best practices guide here to:
Create Extension methods of UrlHelper to generate your url from Route
You'll likely want an extension method for these static images you have:
public static string StaticImage(this UrlHelper helper, string fileName)
{
return helper.Content("~/static/images/{0}".FormatWith(fileName));
}
then you can do:
" />