显示十进制数字asp.net MVC

时间:2016-04-14 03:17:42

标签: c# asp.net-mvc

如何在更新视图中将十进制数50.00显示为50。 我的观点:

@Html.TextBoxFor(model => model.num, new { @class = "form-control", @placeholder = "N" ,type = "number", min = "0",max="100"})

视图模型:

public string num { get; set; }

0 个答案:

没有答案