System.ComponentModel.DataAnnotations
public partial class Claim { private bool IsSubmitted{get { return (this.SubmittedOn != null); }} [Required(ErrorMessage = "Loss Value is required for a submitted claim.")] public decimal? LossValueExt { get { return IsSubmitted ? LossValue : 0; } } . . . }
<%: Html.ValidationMessageFor(m => m.Claim.LossValueExt) %>
ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.