I have this ASP.NET MVC application that I now want to separate out the image links to a CDN. At this moment, images typically have this markup code:
<%= Html.ActionLinkWithImage("/Content/Img/Image1.png" ...
This works fine in development using the local web server (Cassini), and also when published the prod server.
But now I want the production URL to something like:
http://cdn.com/Img/Image1.png
How do I get this to work in an easy way, so that it works seamlessly in dev and after published to prod?