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

The Archive Base Latest Questions

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

First there was the ASP.NET validators and we used them… Then some people on

  • 0

First there was the ASP.NET validators and we used them… Then some people on the team did things manually in javascript… Then a bunch of jquery validation libraries came out… Then MVC2 came out with attributes as validators..

I work with apps that have alot of forms with alot of various validation (Some fields needs to be compared with other values in a DB so a postball/ajax call is required) .. Right now I have a mess of ASP.NET custom validators and functions that calculate on the server side as well.

Can I get some opinions on the best tool/combination to approach this job that can create the smallest/most elegant code? Pure server side solution? AJAX/Jquery? A certain plugin for jquery?

For example, I have 2 dates.. I want to make sure that the 1st date is less than the 2nd date… Are there jquery validators that encapsulate this? My feeling is if I can get jquery plugins to handle half the more basic validation for my that could cut my code in half.

  • 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-15T06:56:14+00:00Added an answer on May 15, 2026 at 6:56 am

    DynamicData for asp.net mvc and dynamic data.

    On webforms I have only used the the asp.net validators approach. This doesn’t mean to go copy-pasting all over custom validations you may have i.e. you add your own custom validators as needed and only on very special circumstances you use extra validators hooked to methods+scripts on the page.

    Depending on how you structure your code, I would expect to be able to leverage some of the infrastructure around DataAnnotations. I can’t give it for a fact, you know the usual issues on asp.net something usually tied up to implementation details, worth a shot if there aren’t better options.

    Update 1:
    a v. quick search gave: http://blogs.microsoft.co.il/blogs/gilf/archive/2010/04/08/building-asp-net-validator-using-data-annotations.aspx, which is rudimentary piece – but shows a way that you can leverage the data annotations on web forms (for the server side).

    Update 2: another one with the same approach as above, but does both server & client side validation:
    http://geeks.ms/blogs/rcarreras/archive/2010/04/20/validando-asp-net-web-form-con-dataannotation-en-ambos-lado-cliente-y-servidor.aspx. Again rudimentary, but certainly can be used as the basis to get a more complete automatic validation based on the annotations. Note: depending on what you use you can have the validators automatically added on the appropriate places, although I must warn that it might be tricky to get it to work well if you haven’t worked with dynamically added validators before

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

Sidebar

Related Questions

I am creating my first ASP.Net MVC3 Application using Azure as DB Storage. There
is there an easy way to scroll an ASP.Net ListBox automatically to the first
hi there i am working on an asp.net web page that first lets users
In first handling an ASP.NET web project. Is there a step by step procedure
For the first time I am using ajax with asp.net. There for I am
Okay,...first the facts. I'm working on an ASP.Net project which validates it's users across
I am using ASP.NET MVC 3. Once I've decided to change some of my
I have an employee class in model for ASP.NET MVC3. There is a field
Is there an WPF ObjectDataProvider that supports Where I mean like in asp.net there
Is there an API in the ASP.NET membership, implementation to get all user profiles

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.