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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:57:21+00:00 2026-06-15T23:57:21+00:00

Each Required Field Validator can validate 1 Controller, but let’s say I have 3

  • 0

Each Required Field Validator can validate 1 Controller, but let’s say I have 3 DropDownLists.

Date of Birth:

-Day- -Month- -Year-

Now I know that I can validate 1 DropDownList by setting the InitialValue, where the first Item in the DropDownList is “Select a Day”, which has a Value=””.

But I do not want to use 3 validators. (Day is missing, Month is missing, Year is missing)

I wish to use 1 Validator for all 3, means, if I set the day and the month but I don’t set the year, I get (Date must be set), same thing If I set the day and the year without the month..etc…

I know that I can do this with a custom validator, but can I do it with 1 Required Field Validator? Because usually Custom validators requires the page to be refreshed (so it can execute server side codes).

  • 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-06-15T23:57:21+00:00Added an answer on June 15, 2026 at 11:57 pm

    You can use validation summary

     <asp:ValidationSummary ID="ValidationSummary1"
      HeaderText="Date must be set"
        DisplayMode="BulletList"
         EnableClientScript="true"
           runat="server"/>
    

    And remove the ErrorMessage ,InitialValue and Text properties of required field validator of dropdowns.
    This will give you required output.

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

Sidebar

Related Questions

Let's say i have the following text input: <input class=required-field type=text name=create-user-username pattern=/^[0-9]+$/ />
I have some code where I need two separate required field validators for one
I am using data annotations with MVC2 to validate a date of birth. The
How can I specify a custom error message for each error type, like required
We have several fields that require validation in Javascript. Each field has several conditions
I have a validation summary control on my page and my required field validators
I have several obj-c classes, each of which require a number of constants that
I have the following rspec: require 'spec_helper' describe KnowledgesController do before (:each) do @knowledge
Each request in my web app can get one data access object instance (of
Each time I use Merge() I have the following: 'Cannot implicitly convert type 'void'

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.