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 3460380
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T10:13:21+00:00 2026-05-18T10:13:21+00:00

Good day! I use ASP.NET MVC 2.0 with server validation (DataAnnotations + IDataErrorInfo for

  • 0

Good day!

I use ASP.NET MVC 2.0 with server validation (DataAnnotations + IDataErrorInfo for ViewModel classes).

I can write my client validation by hand using jQuery validation plugin (I’ve done this for years :)) and this is the only approach when I can get very smart client validation.

But for most cases it will be cool to pull server rules directly to client validation. I’ve looked here: http://haacked.com/archive/2009/11/19/aspnetmvc2-custom-validation.aspx
but it seems to much code for such common task

Questions (at last):

  • What is better solution?
  • Will ASP.NET MVC 3 bring anything in this area?

Thanks!

  • 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-18T10:13:21+00:00Added an answer on May 18, 2026 at 10:13 am

    There’s no magic here. If you are performing some custom validation on your server you need to translate it to the client validation framework you are using. What if you are querying some distant server to perform business validation. How on earth do you expect the client to know about this? And no, ASP.NET MVC 3 doesn’t bring anything new in this area.

    What ASP.NET MVC 3 brings is unobtrusive validation for simple rules and making jquery validate the default client side validation plugin. Here’s another nice article about it.

    By the way I would recommend you looking at FluentValidation. It has a great integration with ASP.NET MVC.

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

Sidebar

Related Questions

Good day! I've the following ViewModel class I use for login form: using System.ComponentModel.DataAnnotations;
Good day, I'm having a problem with asp.net 2.0 viewstate. Basically, I want to
what technology can i use to manage unstable internet connection in a Server-Client App.
I have a ASP.NET MVC page of Events of a specific day. I'm also
Good day. I am trying to fetch an asp.net label control's text value using
Good day, We just converted our web application .NET 1.1 to .NET 2.0. We
Good afternoon, This should be an easy one. I've done the cookie-cutter default ASP.NET
I'm just starting with ASP.Net MVC 2 and might be doing something wrong. I
i'm totally noob to asp.net mvc and currently i'm writing an web app which
Good day! I use strategy to handle 404 errors like this: Error handling for

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.