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

  • SEARCH
  • Home
  • 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 503481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:23:54+00:00 2026-05-13T06:23:54+00:00

Im trying to choose the best server/client validation framework to use with my MVC

  • 0

Im trying to choose the best server/client validation framework to use with my MVC application. I would like to know what is the best validation framework to use with MVC to do server/client validation.

My options are:

  • Castle validator
  • Microsoft Data Annotations
  • nHibernate Validator
  • 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-13T06:23:55+00:00Added an answer on May 13, 2026 at 6:23 am

    I’ve been using xVal with great success.

    The best thing is you can fully automate validation:

    • put DataAnnotations (or special rules) to your business layer POCO classes (if you have them) or entity classes’ metadata buddy classes if you use entities up to controller layer
    • write an ActionFilter that will automatically validate parameters to your controller actions – it’s best if all your POCOs (or entities) implement a certain interface that defines Validate() method, filter calls this method and fills ModelState.Errors when validation fails.
    • Add if (ModelState.IsValid) { ... } in your controller action that needs to work differently when model isn’t valid
    • Put <%= Html.ValidationMessage(…) %> in your views that will display validation errors
    • Add xVal’s client validation to your views if desired

    This way you’ve set up automatic object validation. All your controller actions will do is check Model validity.

    Asp.net MVC 2 will have something very similar to xVal already built in the framework so it’s up to you which version are you using.

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

Sidebar

Related Questions

I'm designing a stand-alone, multi-threaded application in Java. I'm trying to choose the best
I'm trying to decide how to choose between the WSO2 Gadget Server and WSO2
I'm trying to build a simple application, with the finished program looking like this
I'm trying to choose the best way to implement this UI in MVVM manner.
I am trying to find out, what pattern will be the best to use
I'd like some advice regarding Android UI (in)efficiency. I'm trying to determine the best
I'm trying to find the best components I could use to build something similar
I'm trying to choose some files to upload in Windows Phone 7 (in the
I'm trying to choose a certificate from the computer certificate store LocalMachine\My that serves
Having problems with a small awk script, Im trying to choose the newest of

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.