EmailAddressAttribute not working correctly

  • Thread starter Thread starter Tech Aspirant
  • Start date Start date
T

Tech Aspirant

Guest
Below code doesn't check correctly. If condition results to true

var emailChecker = new EmailAddressAttribute();
if (!emailChecker.IsValid("sam@samplem1ansamplem1an%&/(.com"))
{
return "Not a Valid Email Address";
}

Continue reading...
 
Back
Top