Avatar of itnifl
itnifl
Flag for Norway asked on

Making exceptions for ValidationAttribute

So I have made a custom validation attribute for a property in my C# MVC view model, and it works as expected on the server side. But now I want the user to be able to cancel the validation by selecting a checkbox that says; skip verification, and then let the whole system store the value in the property anyway. But only for that specific selected property, all other properties should be validated as normal.

Any good suggestions and examples on how to do this?
C#Web Development

Avatar of undefined
Last Comment
itnifl

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
itnifl

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
itnifl

ASKER
Solved
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck