我想通过使用带有属性的 DisplayFormat 属性在侧面文本框中显示百分比 (%) 符号。
我正在使用 MVC3
我的模型是
public class CommodityParticularInfo : EntityBase
{
private decimal? _standardReceived;
public decimal? StandardReceived
{
get { return _standardReceived; }
set { _standardReceived = value; }
}
}
视图是
@Html.TextBoxFor(m => m.StandardReceived, new { @class = "textboxreadonly", @style = "width:100%", @ReadOnly = "ReadOnly" })