title: MVC helper - using @URL for image src?
body: <p>I'm using MVC3 and have a simple helper that draws a box with some text and icons inside for a status application. A snippet:</p>
  
  <pre><code>@helper Tile(string ID)
   {
   &lt;div class="front defaulttile"&gt; 
      &lt;div class="notifybar" id="NotifyBarID" &gt;
      &lt;img alt="" src="@Url.Content("~/Images/img.jpg")" style="display: inline; margin-right: 5px;" /&gt;
      &lt;p class="topstatusbartext" id="NotifyBarTextID" &gt;Status bar text&lt;/p&gt;
      &lt;/div&gt;
  etc...
  </code></pre>
  
  <p>It would be great to use @Url.Content for the image src, but I get an error it's not available. Is there something I can add or change to use this? I'd rather not need to juggle paths and having a problem once the app is on the server.</p>
  
  <p>Thanks!</p>