asp.net mvc - multiply model values on html -
i use asp.net-mvc, entity framework. view below:
<td class="center"> <span id="spanitem_@item.urunid">@item.fiyat</span> <input type="text" id="textfiyat_@item.urunid" value="" class="displaynone textwidth90"/> </td> <td class="center"> <span id="spanitem_@item.urunid">@item.adet</span> <input type="text" id="textadet_@item.urunid" value="" class="displaynone textwidth90"/> </td> <td class="center"> <span id="spanitem_@item.urunid"> @item.fiyat)*@item.adet </span> </td>
fiyat field decimal, adet field int. want show multiplying. can not. how can achieve this. thanks...
have tried @(item.fiyat * item.adet)
Comments
Post a Comment