Converting jQuery Validation to ASP.NET MVC Validation?

You may take a look at MVC Foolproof Validation which provides additional attributes or simply write your own custom attribute.

Up vote 0 down vote favorite share g+ share fb share tw.

I have 2 columns to enter in UI. How to give Regular Expression based on those 2 columns for Error Message and Condition in ASP. NET MVC3?

The Condition which is in jQuery, I am migrating to MVC3 Side: if (((new Date(Date. Parse($("#hupUnempBftsEndDate").val()) - Date. Parse($("#hupUnempBftsBeginDate").val()))) / 86400000) End Date of Unemployment Benefits can't be prior to Effective Date of Unemployment Benefits.

\n"; . NET code: public DateTime? BeginDate { get; set; } public DateTime?

EndDate { get; set; } asp.net asp.net-mvc asp.net-mvc-3 asp.net-mvc-2 link|improve this question edited Jan 25 at 16:38David22.7k31541 asked Jan 25 at 16:33user116959482 29% accept rate.

EndDate { get; set; } Another possibility is to use FluentValidation. NET which integrates really nicely with ASP. NET MVC.

Thanks Darin....i wrote a custom validation.! – user1169594 Jan 25 at 16:53.

If you are interested in writing your own custom validation with both server and client side validation using DataAnnotations and jQuery, I wrote a blog article about this.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions