Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 693993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:48:40+00:00 2026-05-14T02:48:40+00:00

I want DefaultModelBinder not to perform any validation based on DataAnnotations metadata. I’m already

  • 0

I want DefaultModelBinder not to perform any validation based on DataAnnotations metadata. I’m already using DataAnnotations with DynamicData for the admin area of my site, and I need a different set of validation rules for the MVC based front-end.

I’m decorating my classes with the MetadataType attribute. If I could have different MetadataType classes for the same model but used on different scenarios that would be great. If not I’m fine with just disabling the validation on the DefaultModelBinder, either by setting some property or by creating a specialized version of it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T02:48:40+00:00Added an answer on May 14, 2026 at 2:48 am

    Take a look at ModelValidatorProviders.Providers collection and leave only necessary entries.

    ModelValidatorProviders.Providers.Clear() should propably solve your problem, but you should still look at it to see how it works.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 500k
  • Answers 500k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer These aren't valid paths to your JavaScript: <script src="~/Scripts/JQuery.js" type="text/javascript"></script>… May 16, 2026 at 2:06 pm
  • Editorial Team
    Editorial Team added an answer Simply declare the dateField as java.util.Date, then use query.setFilter("dateField <… May 16, 2026 at 2:05 pm
  • Editorial Team
    Editorial Team added an answer It is always better to have combination of devices in… May 16, 2026 at 2:05 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I'm having some trouble unit testing the model returned by DefaultModelBinder. I want to
In my view the call below generates url ending with Tasks/Edit but I want
I want a list of different (derived) object types working with the Default Modelbinder
I have a bunch of forms where currency values are entered and I want
I have a textbox in my view that i want to receive the value
Want to display a different message if the time is under a certain amount.
Want to remove all 0 placed at the beginning of some variable. Some options:
I want to write network address to my listview, in a range like 192.168.0.0
I want an option to convert a string to wide string with two different
I want to create a Qt application that takes a random integer and sends

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.