Wednesday, 11 September 2013

Display a decimal field As Int in Razor

Display a decimal field As Int in Razor

I have razor code like this :
@Html.DisplayFor(model => item.sepordan_melk_foroshes.ghamat_total)
as a resault it display this :
123.00
how can i remove the last part and show it like this? :
123
I would be so grateful if anyone help me.

No comments:

Post a Comment