troubleshooting Question

Making exceptions for ValidationAttribute

Avatar of itnifl
itniflFlag for Norway asked on
C#Web Development
2 Comments1 Solution230 ViewsLast Modified:
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?
ASKER CERTIFIED SOLUTION
itnifl
Programmer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros