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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T07:36:48+00:00 2026-05-18T07:36:48+00:00

Question from title. Example: One field has two validator: compareValidator and rangeValidator. CompareValidator checks

  • 0

Question from title.

Example:

One field has two validator: compareValidator and rangeValidator. CompareValidator checks if field has integer type. RangeValidator checks if field has greater then 18 and less then 120. But If I write random letters, both of error message are displayed. Logically, that only message error from CompareValidator would be displayed.

Do you have any proposition?

  • 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-18T07:36:49+00:00Added an answer on May 18, 2026 at 7:36 am

    The RangeValidator can be set to check for type too: http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.basecomparevalidator.type.aspx. Set it to Integer and then you won’t need the second validator anymore.

    The error message could be like: The value should be a number between 18 and 120.

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

Sidebar

Related Questions

Question same as in the title. I've done two approaches. One is straightforward. Generate
The question from title doesn't need more details.
the question is in the title, How to set the UILabel's UIColor from a
Question from the one interview. Please explain what does this C++ code mean: void
Follow up question from Multi-core usage, threads, thread-pools . Are threads moved from one
EDIT : Changed title from inheritance to composition. Left body of question unchanged. I'm
Not sure it is clear from this question title what I mean, so here
Question from beginner. Why code <%= System.DateTime.Now.ToLongDateString() %> is not executed in ASP.NET. Could
First question from me; I'm currently fixing a graphing service that uses XSLFO to
Below is a question from Kathy & Bert Bates SCJP 5 preparation CD. I

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.