title: Razor syntax inside attributes of html elements (ASP MVC 3)
body: <p>I have a table with repeating customer rows, I would like to add the customer ID to the ID attribute of my table rows like this:</p>
  
  <pre><code>&lt;tr id="row&lt;customer id&gt;"&gt;&lt;/tr&gt;
  </code></pre>
  
  <p>I try adding this code:</p>
  
  <pre><code>@foreach(var c in Model) {
     &lt;tr id="row@c.id"&gt;&lt;/tr&gt;
  }
  </code></pre>
  
  <p>Which gives me the following output:</p>
  
  <pre><code>&lt;tr id="row@c.id"&gt;&lt;/tr&gt;
  &lt;tr id="row@c.id"&gt;&lt;/tr&gt;
  </code></pre>
  
  <p>etc.</p>
  
  <p>But I would like it to be:</p>
  
  <pre><code>&lt;tr id="row1"&gt;&lt;/tr&gt;
  &lt;tr id="row2"&gt;&lt;/tr&gt;
  </code></pre>
  
  <p>etc.</p>
  
  <p>I also tried to add <code>&lt;tr&gt;row@{c.id}&lt;/tr&gt;</code> but it did not work..</p>