ExtendedValidation NuGet Package

Extended Validation extends MVC validation to support server side and client side validations of Greater Than, Less Than, Not Equal To, etc.

for various data types including DateTime, string, int, long.

Ex: In your model define -
[Display(Name="Start Date")]
public DateTime Startdate { get; set; }

[GreaterThan("Startdate")]
Display(Name = "End Date")]
public DateTime Enddate { get; set; }

public int? int1 { get; set; }
[NotEqualTo("int1", ErrorMessage="{0} cannot be equal to {1}")]
public int? int2 { get; set; }

*** Don't forget to include ExtendedValidation.js to your view page available in your Scripts folder once you install the package.




Got any ExtendedValidation Question?





Info

Version: 0.1.1
Author(s): Noor
Last Update: Tuesday, March 18, 2014
.NET Fiddle: Create the first Fiddle
Project Url: https://extendedvalidation.codeplex.com/
NuGet Url: https://www.nuget.org/packages/ExtendedValidation


Install
Install-Package ExtendedValidation
dotnet add package ExtendedValidation
paket add ExtendedValidation
ExtendedValidation Download (Unzip the "nupkg" after downloading)



Tags



STATS

must-have-score

.3

avg-downloads-per-day

0

days-since-last-release

3932