title: Simple string.Format question for <a ... class="button" in mvc
body: <p>Example link </p>
  
  <pre><code>&lt;div style="float:right;"&gt;&lt;a href="&lt;%= Url.Content("~/Home/List") %&gt;" class="button"&gt;&lt;span&gt;Return to List&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I want to be able to attach an Id onto the end of the url which is from my Model like shown below in one of my many attempts</p>
  
  <pre><code>&lt;div style="float:right;"&gt;(string.Format(&lt;a href=\"{0}\{1}" %&gt;, &lt;% Url.Content("~/Test/Edit")%&gt;, &lt;% Model.Test.ID %&gt;) "class="button"&gt;&lt;span&gt;Edit&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I know how to do it with action links but I want to keep to the same format and produce a button.</p>
  
  <p>I know this works</p>
  
  <pre><code>&lt;%: Html.ActionLink("Edit", "Edit", new { Id = Model.Test.ID }) %&gt;
  </code></pre>
  
  <p>So anybody got as ideas for a solution?</p>
  
  <p>Thx. </p>