Html.TextBoxFor三元判断

  @Html.TextBoxFor(item => item.DiscountOW,(Model.TripType == "单程" || (Model.TripType == "单程/往返" && Model.DiscountOW != 0)) ? new { } : (object)new { disabled = "disabled", @Value = Model.DiscountOW == default(decimal) ? "" : Model.DiscountOW.ToString() })  

  

posted @ 2015-06-15 16:17  等待是一生最初的苍老  阅读(586)  评论(0编辑  收藏  举报