UIに入力する列が2つあります。 ASP.NET MVC3のエラーメッセージと条件の2つの列に基づいて正規表現を与える方法jQuery検証からASP.NET MVC検証への変換
jQueryのである条件は、私はMVC3サイドに移行しています:
if (((new Date(Date.parse($("#hupUnempBftsEndDate").val()) - Date.parse($("#hupUnempBftsBeginDate").val())))/86400000) < 0) {
validationSummary = validationSummary + "! End Date of Unemployment Benefits can't be prior to Effective Date of Unemployment Benefits. \n";
.NETコード:
public DateTime? BeginDate { get; set; }
public DateTime? EndDate { get; set; }
おかげでダーリンを書いた....私は、カスタム検証を書きました。!! – user1169594