title: How to concatenate the id of the HTML element using Razor ASp.NET MVC
body: <p>I have a grid column with checkboxes and I want to give them a different id. Id is based on the CustomerId in the Model. What syntax should I use to concatenate the chk_@item.CustomerId. </p>
  
  <pre><code>// using the telerik grid 
  id="chk_@item.OrderNumber"  // does not work 
  </code></pre>
  
  <p>// this will put the value of @item.Customernumber as the checkbox id</p>
  
  <pre><code>columns.Template(@&lt;text&gt;&lt;input type='checkbox' id="@item.Customernumber" name="@item.CustomerNumber" value="@item.OrderNumber" /&gt;&lt;/text&gt;).Width(50)
  </code></pre>
  
  <p>second option: </p>
  
  <pre><code>columns.Template(@&lt;text&gt;&lt;input type='checkbox' id="chk_@item.Customernumber" name="@item.CustomerNumber" value="@item.OrderNumber" /&gt;&lt;/text&gt;).Width(50)
  </code></pre>
  
  <p>the above will render as</p>
  
  <pre><code>&lt;input type="checkbox" id="chk_@item.Customernumber" value=... /&gt; 
  </code></pre>