2

我使用asp.net-mvc,实体框架。我的看法如下:

 <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 字段为十进制,Adet 字段为 int。我想展示它们的倍增。但是我不能。我怎样才能做到这一点。谢谢...

4

2 回答 2

7

你有没有尝试过@(item.Fiyat * item.Adet)

于 2013-05-21T18:17:26.760 回答
0

你可以试试-

@(item.Fiyat * item.Adet)
于 2017-03-19T10:03:41.983 回答