2013-05-21 24 views
2

我使用asp.net-mvc實體框架。我的觀點如下:在html上乘以模型值

<td class="center"> 
    <span id="[email protected]">@item.Fiyat</span> 
    <input type="text" id="[email protected]" value="" class="displaynone textwidth90"/> 
</td> 
<td class="center"> 
     <span id="[email protected]">@item.Adet</span> 
     <input type="text" id="[email protected]" value="" class="displaynone textwidth90"/> 
</td> 
<td class="center"> 
    <span id="[email protected]"> 
     @item.Fiyat)*@item.Adet 
    </span> 
</td> 

Fiyat字段是十進制的,Adet字段是int。我想展示他們的繁殖。但是我不能。 我該如何做到這一點。謝謝...

回答

0

你可以試試它 -

@(item.Fiyat * item.Adet) 
+0

你應該先給它是由你確定的答案,請不要給測試前一個答案。 –