I am trying to generate a table like this
@foreach (var item in @Model.Where(o => o.Status == "Submitted")){
<tr class="row" data_orderid="@item.Id">
<td class="description">
@item.Customer
</td>
<td class="description">
@item.OrderDescription
</td>
...etc...etc
so that I can handle the click event of each tr, and display some info based on the data-orderid attribute value of the tr that was clicked.
In Visual Studio I get a validation message saying "data_orderid is not a valid attribute of tr" and when it renders the HTML tr has no attributes, Not event the class.
How should I be adding attributes like this?