Student Reviews
( 5 Of 5 )
1 review
Video of Custom Validator in ASPMVC in ASP.net course by Prog Lix channel, video No. 43 free certified online
Create New Folder
Add new Class inside created folder
using System.ComponentModel.DataAnnotations;
public class name : ValidationAttribute
{
readonly variables;
constructor (): base ("{0} Error Message")
{
}
public override bool IsValid (object value)
{
if (condition)
return true;
else
return false;
}
}