title: How to use ASP.NET MVC Html Helpers from a custom helper?
body: <p>I have several pages listing search results, for each result I would like to display I want to create a custom View Helper in order to avoid duplicating the display code.</p>
  
  <p>How do I access the convenient existing view helpers from my custom view helper? I.e. in my custom view helper I would like to use Url.Action(), Html.ActionLink, etc. How do I access them from my custom view helper?</p>
  
  <pre><code>using System;
  namespace MvcApp.Helpers
  {
      public class SearchResultHelper
      {
          public static string Show(Result result)
          {
              string str = "";
  
              // producing HTML for search result here
  
              // instead of writing
              str += String.Format("&lt;a href=\"/showresult/{0}\"&gt;{1}&lt;/a&gt;", result.id, result.title);
              // I would like to use Url.Action, Html.ActionLink, etc. How?
  
              return str;
          }
      }
  }
  </code></pre>
  
  <p><code>using System.Web.Mvc</code> gives access to <code>HtmlHelpers</code>, but non of the convenient methods like ActionLink seem to be present.</p>