filmov
tv
Create custom validation attribute in .NET

Показать описание
Authorised Territory code examples - This .NET C# #tutorial shows how to create custom validation attribute on an integer property in a #dotnet MVC project.
The attribute checks if the value of a car is more than a specific number and displays a custom message.
Both, max value and error message are passed via the custom validation attribute.
The attribute checks if the value of a car is more than a specific number and displays a custom message.
Both, max value and error message are passed via the custom validation attribute.