title: Can you combine a c# variable with html tag name
body: <p>I am writing a foreach loop where I am outputting some HTML.  I need to change the name of an input element each time it goes through the loop.  I know in PHP it is super easy to combine text with a PHP variable.  I cannot figure out how to do this in C#.  I am using MVC3 Razor.</p>
  
  <pre><code>&lt;img src="@Url.Content("~/Content/img/subtract.png")" alt="Subtract" class="qtyminus" field="qtyValue@i" /&gt;
  </code></pre>
  
  <p>All this code does is print out "qtyValue@i".  It does not interpret the value of @i.</p>